Skip to content

Commit

Permalink
Silence C compiler warnings; use 'long' instead of 'int' for ruby str…
Browse files Browse the repository at this point in the history
…ing lengths.
  • Loading branch information
jcoglan committed Oct 11, 2015
1 parent c632201 commit 39824f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/websocket-driver/websocket_mask.c
Expand Up @@ -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) {
Expand Down

0 comments on commit 39824f5

Please sign in to comment.