mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* file.c (NUM2DEVT, DEVT2NUM, PRI_DEVT_PREFIX): fallback to
unsigned int. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29509 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e8e2ea4866
commit
ba8dc58ebb
2 changed files with 15 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Fri Oct 15 23:36:25 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* file.c (NUM2DEVT, DEVT2NUM, PRI_DEVT_PREFIX): fallback to
|
||||||
|
unsigned int.
|
||||||
|
|
||||||
Fri Oct 15 22:54:46 2010 Masaki Suketa <masaki.suketa@nifty.ne.jp>
|
Fri Oct 15 22:54:46 2010 Masaki Suketa <masaki.suketa@nifty.ne.jp>
|
||||||
|
|
||||||
* ext/win32ole/win32ole.c (ole_hresult2msg): get English message first,
|
* ext/win32ole/win32ole.c (ole_hresult2msg): get English message first,
|
||||||
|
|
10
file.c
10
file.c
|
@ -316,6 +316,16 @@ 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)))
|
||||||
|
|
||||||
|
#ifndef NUM2DEVT
|
||||||
|
# define NUM2DEVT(v) NUM2UINT(v)
|
||||||
|
#endif
|
||||||
|
#ifndef DEVT2NUM
|
||||||
|
# define DEVT2NUM(v) UINT2NUM(v)
|
||||||
|
#endif
|
||||||
|
#ifndef PRI_DEVT_PREFIX
|
||||||
|
# define PRI_DEVT_PREFIX ""
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* call-seq:
|
* call-seq:
|
||||||
* stat.dev -> fixnum
|
* stat.dev -> fixnum
|
||||||
|
|
Loading…
Reference in a new issue