summaryrefslogtreecommitdiffstats
path: root/generic/tclUtil.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2017-10-30 08:47:33 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2017-10-30 08:47:33 (GMT)
commitfe508fa3b5c9dffaebbd68b86344a799a45075c4 (patch)
tree5dbc8e9998a9a9b1c96e2ec1f3fb2fd1e7ddc04c /generic/tclUtil.c
parente0578530b062a38b3fe7dfd1474dd3caa927c271 (diff)
downloadtcl-fe508fa3b5c9dffaebbd68b86344a799a45075c4.zip
tcl-fe508fa3b5c9dffaebbd68b86344a799a45075c4.tar.gz
tcl-fe508fa3b5c9dffaebbd68b86344a799a45075c4.tar.bz2
Experimental branch meant to eliminate the "wideint" type, just merge it to a single "int" type. No effect on linux64 and similar systems, code simplification for Win64 and 32-bit system. No TIP yet, implementation ongoing.
Diffstat (limited to 'generic/tclUtil.c')
-rw-r--r--generic/tclUtil.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tclUtil.c b/generic/tclUtil.c
index 608cd15..da4dc49 100644
--- a/generic/tclUtil.c
+++ b/generic/tclUtil.c
@@ -3598,7 +3598,7 @@ TclGetIntForIndex(
* be converted to one, use it.
*/
- *indexPtr = endValue + objPtr->internalRep.longValue;
+ *indexPtr = endValue + objPtr->internalRep.wideValue;
return TCL_OK;
}
@@ -3690,9 +3690,9 @@ UpdateStringOfEndOffset(
register int len = 3;
memcpy(buffer, "end", 4);
- if (objPtr->internalRep.longValue != 0) {
+ if (objPtr->internalRep.wideValue != 0) {
buffer[len++] = '-';
- len += TclFormatInt(buffer+len, -(objPtr->internalRep.longValue));
+ len += TclFormatInt(buffer+len, -(objPtr->internalRep.wideValue));
}
objPtr->bytes = ckalloc((unsigned) len+1);
memcpy(objPtr->bytes, buffer, (unsigned) len+1);
@@ -3790,7 +3790,7 @@ SetEndOffsetFromAny(
*/
TclFreeIntRep(objPtr);
- objPtr->internalRep.longValue = offset;
+ objPtr->internalRep.wideValue = offset;
objPtr->typePtr = &tclEndOffsetType;
return TCL_OK;