diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-02-04 13:39:49 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-02-04 13:39:49 +0000 |
commit | d823b0b00e4b643b3bd7a14e87490d8a4f96fb86 (patch) | |
tree | d337736720f483fdff418adae6676c744efbb14d /file.c | |
parent | 3f03172b65d23f7f509e8fa38c68bed029c17d9d (diff) | |
download | ruby-d823b0b00e4b643b3bd7a14e87490d8a4f96fb86.tar.gz ruby-d823b0b00e4b643b3bd7a14e87490d8a4f96fb86.tar.xz ruby-d823b0b00e4b643b3bd7a14e87490d8a4f96fb86.zip |
* file.c (rb_stat_mode): should not sign-expand, so backout.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -231,7 +231,11 @@ static VALUE rb_stat_mode(self) VALUE self; { +#ifdef __BORLANDC__ + return UINT2NUM((unsigned short)(get_stat(self)->st_mode)); +#else return UINT2NUM(get_stat(self)->st_mode); +#endif } /* |