.
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;
}
/*
*----------------------------------------------------------------------
*