--- a/src/c/arch/unix/cursesw/dpy.c +++ b/src/c/arch/unix/cursesw/dpy.c @@ -114,7 +114,7 @@ { struct timeval then; gettimeofday(&then, NULL); - u_int64_t thenms = (then.tv_usec/1000) + ((u_int64_t) then.tv_sec*1000); + uint64_t thenms = (then.tv_usec/1000) + ((uint64_t) then.tv_sec*1000); for (;;) { @@ -123,9 +123,9 @@ { struct timeval now; gettimeofday(&now, NULL); - u_int64_t nowms = (now.tv_usec/1000) + ((u_int64_t) now.tv_sec*1000); + uint64_t nowms = (now.tv_usec/1000) + ((uint64_t) now.tv_sec*1000); - int delay = ((u_int64_t) timeout*1000) + nowms - thenms; + int delay = ((uint64_t) timeout*1000) + nowms - thenms; if (delay <= 0) return -KEY_TIMEOUT;