summaryrefslogtreecommitdiffstats
path: root/compat/strtoll.c
diff options
context:
space:
mode:
authorKevin B Kenny <kennykb@acm.org>2002-02-15 23:42:12 (GMT)
committerKevin B Kenny <kennykb@acm.org>2002-02-15 23:42:12 (GMT)
commitb5e9e40d2f0d57b15ea03e954e1c2085b9874fed (patch)
tree87a231b742d00bcbf481e3439acb70032c612370 /compat/strtoll.c
parent097b4b7f2e14a0d47f82c9d8b7579bee651660b4 (diff)
downloadtcl-b5e9e40d2f0d57b15ea03e954e1c2085b9874fed.zip
tcl-b5e9e40d2f0d57b15ea03e954e1c2085b9874fed.tar.gz
tcl-b5e9e40d2f0d57b15ea03e954e1c2085b9874fed.tar.bz2
Further changes to the TIP 72 patch to make it compile under VC++
Diffstat (limited to 'compat/strtoll.c')
-rw-r--r--compat/strtoll.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/compat/strtoll.c b/compat/strtoll.c
index 2872006..1105040 100644
--- a/compat/strtoll.c
+++ b/compat/strtoll.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: strtoll.c,v 1.2 2002/02/15 14:28:47 dkf Exp $
+ * RCS: @(#) $Id: strtoll.c,v 1.3 2002/02/15 23:42:12 kennykb Exp $
*/
#include "tcl.h"
@@ -82,7 +82,7 @@ strtoll(string, endPtr, base)
} else if (uwResult > TCL_WIDEINT_MAX) {
return ~((Tcl_WideInt)TCL_WIDEINT_MAX);
} else {
- result = -uwResult;
+ result = -((Tcl_WideInt) uwResult);
}
}
} else {