summaryrefslogtreecommitdiffstats
path: root/generic/tclClock.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-11-04 11:11:18 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-11-04 11:11:18 (GMT)
commitf3896e51875d3696de089804ab5e205403ee842a (patch)
tree6c843420d6515f8c0db1db0fdd47b1089a5f3b53 /generic/tclClock.c
parent6ab05e04d1c2e4d0a473c114f67d7a8f1cab4dbd (diff)
downloadtcl-f3896e51875d3696de089804ab5e205403ee842a.zip
tcl-f3896e51875d3696de089804ab5e205403ee842a.tar.gz
tcl-f3896e51875d3696de089804ab5e205403ee842a.tar.bz2
New functions Tcl_NewWideUIntObj()/Tcl_SetWideUIntObj() (still experimental)
Diffstat (limited to 'generic/tclClock.c')
-rw-r--r--generic/tclClock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclClock.c b/generic/tclClock.c
index a9ba70c..72605ca 100644
--- a/generic/tclClock.c
+++ b/generic/tclClock.c
@@ -1810,7 +1810,7 @@ ClockMillisecondsObjCmd(
return TCL_ERROR;
}
Tcl_GetTime(&now);
- Tcl_SetObjResult(interp, Tcl_NewWideIntObj((Tcl_WideInt)
+ Tcl_SetObjResult(interp, Tcl_NewWideUIntObj(
now.sec * 1000 + now.usec / 1000));
return TCL_OK;
}
@@ -1998,7 +1998,7 @@ ClockSecondsObjCmd(
return TCL_ERROR;
}
Tcl_GetTime(&now);
- Tcl_SetObjResult(interp, Tcl_NewWideIntObj((Tcl_WideInt) now.sec));
+ Tcl_SetObjResult(interp, Tcl_NewWideUIntObj(now.sec));
return TCL_OK;
}