diff options
| author | nijtmans@users.sourceforge.net <jan.nijtmans> | 2012-08-06 07:59:01 (GMT) |
|---|---|---|
| committer | nijtmans@users.sourceforge.net <jan.nijtmans> | 2012-08-06 07:59:01 (GMT) |
| commit | 590f90dfb94a3838bb07b37b552b4ed1cb854918 (patch) | |
| tree | 9726218d2767be111aba0feda74cd0ac220f4355 /generic/tclClock.c | |
| parent | 9d0b03b064d691de9202a0f56b437c2a7358bb48 (diff) | |
| parent | 2b1db29c1c22c136a33ecefc4e021bd22c58f17e (diff) | |
| download | tcl-590f90dfb94a3838bb07b37b552b4ed1cb854918.zip tcl-590f90dfb94a3838bb07b37b552b4ed1cb854918.tar.gz tcl-590f90dfb94a3838bb07b37b552b4ed1cb854918.tar.bz2 | |
merge trunk
Diffstat (limited to 'generic/tclClock.c')
| -rw-r--r-- | generic/tclClock.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/generic/tclClock.c b/generic/tclClock.c index 7fa4017..6d2976d 100644 --- a/generic/tclClock.c +++ b/generic/tclClock.c @@ -878,8 +878,8 @@ ConvertLocalToUTCUsingC( if (localErrno != 0 || (fields->seconds == -1 && timeVal.tm_yday == -1)) { - Tcl_SetResult(interp, "time value too large/small to represent", - TCL_STATIC); + Tcl_SetObjResult(interp, Tcl_NewStringObj( + "time value too large/small to represent", -1)); return TCL_ERROR; } return TCL_OK; @@ -1018,17 +1018,17 @@ ConvertUTCToLocalUsingC( tock = (time_t) fields->seconds; if ((Tcl_WideInt) tock != fields->seconds) { - Tcl_AppendResult(interp, - "number too large to represent as a Posix time", NULL); + Tcl_SetObjResult(interp, Tcl_NewStringObj( + "number too large to represent as a Posix time", -1)); Tcl_SetErrorCode(interp, "CLOCK", "argTooLarge", NULL); return TCL_ERROR; } TzsetIfNecessary(); timeVal = ThreadSafeLocalTime(&tock); if (timeVal == NULL) { - Tcl_AppendResult(interp, + Tcl_SetObjResult(interp, Tcl_NewStringObj( "localtime failed (clock value may be too " - "large/small to represent)", NULL); + "large/small to represent)", -1)); Tcl_SetErrorCode(interp, "CLOCK", "localtimeFailed", NULL); return TCL_ERROR; } |
