From d1abc53721a15bd545b60c875b05f28dd7e01e57 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 12 Mar 2009 09:16:15 +0000 Subject: * array.c, bignum.c, dln.c, error.c, gc.c, io.c, marshal.c, numeric.c, pack.c, strftime.c, string.c, thread.c, transcode.c, transcode_data.h, util.c, variable.c, vm_dump.c, include/ruby/encoding.h, missing/crypt.c, missing/vsnprintf.c: suppress VC type warnings. [ruby-core:22726] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22914 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- strftime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'strftime.c') diff --git a/strftime.c b/strftime.c index b602173ea2..4e7a2d1909 100644 --- a/strftime.c +++ b/strftime.c @@ -515,7 +515,7 @@ rb_strftime(char *s, size_t maxsize, const char *format, const struct tm *timept time_t now; time(&now); utc = *gmtime(&now); - off = (now - mktime(&utc)) / 60; + off = (long)((now - mktime(&utc)) / 60); } #endif #endif /* !HAVE_VAR_TIMEZONE */ -- cgit v1.2.1