diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-12-26 00:21:25 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-12-26 00:21:25 +0000 |
commit | dcd5eff7dd5d5861b67667f48424979be9bcabc8 (patch) | |
tree | 268bcf911679c18157ceaf6c1b6d74e94b8f53a8 /ext/kgio/connect.c | |
parent | 5280f35f131d88f90afffff0e10f7900530728aa (diff) | |
download | kgio-dcd5eff7dd5d5861b67667f48424979be9bcabc8.tar.gz |
Less noise means we'll notice real bugs sooner.
Diffstat (limited to 'ext/kgio/connect.c')
-rw-r--r-- | ext/kgio/connect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/kgio/connect.c b/ext/kgio/connect.c index 4e46704..9642429 100644 --- a/ext/kgio/connect.c +++ b/ext/kgio/connect.c @@ -119,7 +119,7 @@ static VALUE unix_connect(VALUE klass, VALUE path, int io_wait) StringValue(path); len = RSTRING_LEN(path); - if (sizeof(addr.sun_path) <= len) + if ((long)sizeof(addr.sun_path) <= len) rb_raise(rb_eArgError, "too long unix socket path (max: %dbytes)", (int)sizeof(addr.sun_path)-1); |