Permalink
Browse files

Silence C compiler warnings; use 'long' instead of 'int' for ruby str…

…ing lengths.
  • Loading branch information...
1 parent c632201 commit 39824f5ace146c8716375c2cc3ff53f87270e659 @jcoglan jcoglan committed Oct 11, 2015
Showing with 1 addition and 1 deletion.
  1. +1 −1 ext/websocket-driver/websocket_mask.c
@@ -20,7 +20,7 @@ method_websocket_mask(VALUE self,
VALUE mask)
{
char *payload_s, *mask_s, *unmasked_s;
- int i, n;
+ long i, n;
VALUE unmasked;
if (mask == Qnil || RSTRING_LEN(mask) != 4) {

0 comments on commit 39824f5

Please sign in to comment.