summaryrefslogtreecommitdiffstats
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
commitd823b0b00e4b643b3bd7a14e87490d8a4f96fb86 (patch)
treed337736720f483fdff418adae6676c744efbb14d
parent3f03172b65d23f7f509e8fa38c68bed029c17d9d (diff)
downloadruby-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
-rw-r--r--ChangeLog6
-rw-r--r--file.c4
2 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index aa049fc7d..23590086e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Wed Feb 4 22:39:46 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (rb_stat_mode): should not sign-expand, so backout.
+
Wed Feb 4 02:12:06 2004 Tanaka Akira <akr@m17n.org>
* file.c (test_l): fix wrong method name in document.
@@ -67,7 +71,7 @@ Sun Feb 1 23:00:00 2004 Shigeo Kobayashi <shigek@ruby-lang.org>
Sun Feb 1 18:21:00 2004 Gavin Sinclair <gsinclair@soyabean.com.au>
- From ruby_1_8 branch:
+ From ruby_1_8 branch:
* lib/test/unit.rb: rearranged documentation for RDoc's sake.
* lib/matrix.rb: improved documentation.
* lib/net/http.rb: slight documentation formatting improvement.
diff --git a/file.c b/file.c
index d601b26e8..2ae9be98c 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
}
/*