diff options
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); |