From 0652068222b1cabf3044489c65e9dded445e5552 Mon Sep 17 00:00:00 2001 From: Rob Savoye Date: Mon, 26 Mar 2012 09:20:16 -0600 Subject: [PATCH] use time_t instead of size_t for time. This eliminates the compiler narrowing warning. --- libbase/GnashSleep.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libbase/GnashSleep.h b/libbase/GnashSleep.h index ab4b37293..46effceac 100644 --- a/libbase/GnashSleep.h +++ b/libbase/GnashSleep.h @@ -32,12 +32,12 @@ namespace gnash { /// Sleep compatibly for the specified number of microseconds // /// @param useconds microseconds to sleep. -inline void gnashSleep(size_t useconds) +inline void gnashSleep(time_t useconds) { #if defined(_WIN32) || defined(WIN32) Sleep(useconds / 1000); #else - const size_t m = 1000000; + const time_t m = 1000000; const struct timespec t = { useconds / m, (useconds % m) * 1000 }; ::nanosleep(&t, 0); #endif -- 2.11.4.GIT