summaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-14 01:56:15 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-14 01:56:15 +0000
commita2359159368992c21702b2bae1a982964ba5591a (patch)
tree4f88e8b287b173568806420137aa9e1ecc4ba179 /file.c
parent45bff040c3c8f0ddf33356e400d8a0726febc4d8 (diff)
downloadruby-a2359159368992c21702b2bae1a982964ba5591a.tar.gz
ruby-a2359159368992c21702b2bae1a982964ba5591a.tar.xz
ruby-a2359159368992c21702b2bae1a982964ba5591a.zip
* dln.c (init_funcname_len, dln_find_exe_r, dln_find_file_r): use
size_t. * file.c (rb_stat_inspect, file_expand_path): ditto. * util.c (ruby_qsort): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r--file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/file.c b/file.c
index d30a2c669..5ad7665bb 100644
--- a/file.c
+++ b/file.c
@@ -654,7 +654,7 @@ static VALUE
rb_stat_inspect(VALUE self)
{
VALUE str;
- int i;
+ size_t i;
static const struct {
const char *name;
VALUE (*func)(VALUE);
@@ -2664,7 +2664,7 @@ file_expand_path(VALUE fname, VALUE dname, int abs_mode, VALUE result)
{
const char *s, *b;
char *buf, *p, *pend, *root;
- long buflen, dirlen;
+ size_t buflen, dirlen;
int tainted;
rb_encoding *extenc = 0;