diff options
author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-10-29 21:35:28 +0000 |
---|---|---|
committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-10-29 21:35:28 +0000 |
commit | a2868ff65166b27acbbda4af1b9df84ed3171541 (patch) | |
tree | 08a0b09a8416ab4b1da83d70cd2fb85a72edb188 /file.c | |
parent | 454abc5185a4a6425f1140d5c0e2157f8d3f75e1 (diff) | |
download | ruby-a2868ff65166b27acbbda4af1b9df84ed3171541.tar.gz |
* eval.c, file.c, gc.c, io.c, object.c, ruby.c, ruby.h, struct.c,
ext/socket/socket.c: differentiate long and int; use proper
printf type specifiers and do casts where appropriate.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -333,7 +333,7 @@ rb_stat_inspect(self) if (i == 2) { /* mode */ char buf[32]; - sprintf(buf, "0%lo", NUM2INT(v)); + sprintf(buf, "0%o", NUM2INT(v)); rb_str_buf_cat2(str, buf); } else if (i == 0 || i == 6) { /* dev/rdev */ |