mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Refix for r29493; it is unsigned.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
51427700cc
commit
694826d7e2
1 changed files with 3 additions and 3 deletions
6
file.c
6
file.c
|
@ -317,11 +317,11 @@ rb_stat_cmp(VALUE self, VALUE other)
|
||||||
#define ST2UINT(val) ((val) & ~(~1UL << (sizeof(val) * CHAR_BIT - 1)))
|
#define ST2UINT(val) ((val) & ~(~1UL << (sizeof(val) * CHAR_BIT - 1)))
|
||||||
|
|
||||||
#if SIZEOF_DEV_T > SIZEOF_LONG && defined(HAVE_LONG_LONG)
|
#if SIZEOF_DEV_T > SIZEOF_LONG && defined(HAVE_LONG_LONG)
|
||||||
# define DEVT2NUM(v) LL2NUM(v)
|
# define DEVT2NUM(v) ULL2NUM(v)
|
||||||
#elif SIZEOF_DEV_T == SIZEOF_LONG
|
#elif SIZEOF_DEV_T == SIZEOF_LONG
|
||||||
# define DEVT2NUM(v) LONG2NUM(v)
|
# define DEVT2NUM(v) ULONG2NUM(v)
|
||||||
#else
|
#else
|
||||||
# define DEVT2NUM(v) INT2NUM(v)
|
# define DEVT2NUM(v) UINT2NUM(v)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue