summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-02-04 13:39:49 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-02-04 13:39:49 +0000
commit90d8cbb1ee3c7955642e1af995361eb0d9558aa9 (patch)
treed337736720f483fdff418adae6676c744efbb14d /file.c
parent0388819018d796e1df32d5814ae70357ed8e331f (diff)
* file.c (rb_stat_mode): should not sign-expand, so backout.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r--file.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/file.c b/file.c
index d601b26e88..2ae9be98cf 100644
--- a/file.c
+++ b/file.c
@@ -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
}
/*