diff options
author | dkf <dkf@noemail.net> | 2007-04-10 14:47:06 (GMT) |
---|---|---|
committer | dkf <dkf@noemail.net> | 2007-04-10 14:47:06 (GMT) |
commit | 807909c8786778cefc690ac7f1eb5e7fce6757c9 (patch) | |
tree | e12acd4bb445070087067812722f564f29218f8d /generic/tclClock.c | |
parent | a4830b01f6f650ea70a34c388fcee6966cdb3222 (diff) | |
download | tcl-807909c8786778cefc690ac7f1eb5e7fce6757c9.zip tcl-807909c8786778cefc690ac7f1eb5e7fce6757c9.tar.gz tcl-807909c8786778cefc690ac7f1eb5e7fce6757c9.tar.bz2 |
Handle creation of Tcl_Objs from constant strings better (easier to use, more
efficient). After [Patch 1529526] (afredd)
FossilOrigin-Name: 4d69119aadb4298f8e994440eb988c6c46396086
Diffstat (limited to 'generic/tclClock.c')
-rw-r--r-- | generic/tclClock.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/generic/tclClock.c b/generic/tclClock.c index a92dc67..223577b 100644 --- a/generic/tclClock.c +++ b/generic/tclClock.c @@ -12,7 +12,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclClock.c,v 1.59 2006/08/28 08:48:07 das Exp $ + * RCS: @(#) $Id: tclClock.c,v 1.60 2007/04/10 14:47:09 dkf Exp $ */ #include "tclInt.h" @@ -845,9 +845,8 @@ ConvertLocalToUTCUsingC( if (localErrno != 0 || (fields->seconds == -1 && timeVal.tm_yday == -1)) { - Tcl_SetObjResult(interp, - Tcl_NewStringObj("time value too large/small to represent", - -1)); + Tcl_SetResult(interp, "time value too large/small to represent", + TCL_STATIC); return TCL_ERROR; } return TCL_OK; |