1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* time.c: should use LONG_LONG instead of `long long'.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ocean 2005-10-21 06:33:00 +00:00
parent ee2434851b
commit b4236d6e71
2 changed files with 6 additions and 5 deletions

View file

@ -6,6 +6,8 @@ Fri Oct 21 15:23:23 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
(but I believe this won't cause actual bug in current implementation) (but I believe this won't cause actual bug in current implementation)
[ruby-dev:27055] [ruby-dev:27055]
* time.c: should use LONG_LONG instead of `long long'.
Thu Oct 20 22:22:49 2005 Nobuyoshi Nakada <nobu@ruby-lang.org> Thu Oct 20 22:22:49 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parser.y (struct parser_params): parser never modify input string. * parser.y (struct parser_params): parser never modify input string.

9
time.c
View file

@ -1206,7 +1206,7 @@ typedef unsigned long unsigned_time_t;
#elif SIZEOF_TIME_T == SIZEOF_INT #elif SIZEOF_TIME_T == SIZEOF_INT
typedef unsigned int unsigned_time_t; typedef unsigned int unsigned_time_t;
#elif SIZEOF_TIME_T == SIZEOF_LONG_LONG #elif SIZEOF_TIME_T == SIZEOF_LONG_LONG
typedef unsigned long long unsigned_time_t; typedef unsigned LONG_LONG unsigned_time_t;
#else #else
# error cannot find integer type which size is same as time_t. # error cannot find integer type which size is same as time_t.
#endif #endif
@ -1670,10 +1670,9 @@ time_to_a(VALUE time)
#define SMALLBUF 100 #define SMALLBUF 100
static int static int
rb_strftime( rb_strftime(char ** volatile buf,
char ** volatile buf, char * volatile format,
char * volatile format, struct tm * volatile time)
struct tm * volatile time)
{ {
volatile int size; volatile int size;
int len, flen; int len, flen;