Skip to content
Tcl Source Code Artifact [454ef62651]
Login

Artifact [454ef62651]

Artifact 454ef626516e58acc78d15c2e0336c22b8384900939ec3a05f11c139df27542c:

Attachment "clockseconds.diff" to ticket [d5acb07b64] added by emiliano on 2026-08-02 16:44:35.
Index: generic/tclCompile.h
==================================================================
--- generic/tclCompile.h	
+++ generic/tclCompile.h	
@@ -112,11 +112,15 @@
 #endif
 }
 
 static inline bool
 OutOfUintRangeUpper(
+#if defined(PTRDIFF_MAX) && PTRDIFF_MAX == INT_MAX
+    TCL_UNUSED(Tcl_Size))
+#else
     Tcl_Size value)
+#endif
 {
     // Not sure what to do on 32-bit platforms that don't have PTRDIFF_MAX.
 #if defined(PTRDIFF_MAX) && PTRDIFF_MAX == INT_MAX
     return false;
 #else

Index: unix/tclUnixTime.c
==================================================================
--- unix/tclUnixTime.c	
+++ unix/tclUnixTime.c	
@@ -59,11 +59,11 @@
 Tcl_GetDayTime(void)
 {
     struct timeval tv;
 
     (void) gettimeofday(&tv, NULL);
-    return tv.tv_sec * 1000000 + tv.tv_usec;
+    return (long long)tv.tv_sec * 1000000 + tv.tv_usec;
 }
 
 /*
  *----------------------------------------------------------------------
  *