Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

use strtoul & sviv for hex, too

  • Loading branch information...
commit 315e9c94a8c2445eea814a98c01aff8bc6d9946c 1 parent a389afd
@tokuhirom authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/Nana/toke.re
View
2  lib/Nana/toke.re
@@ -88,7 +88,7 @@ int token_op(char *src, size_t len, int *used, int *found_end, int *lineno_inc,
OP(TOKEN_INTEGER);
}
"0x" [0-9a-fA-F]+ {
- *yylval = sv_2mortal(newSViv(strtol(orig+2, &cursor, 16)));
+ *yylval = sv_2mortal(newSVuv(strtoul(orig+2, &cursor, 16)));
OP(TOKEN_INTEGER);
}
IDENT {
Please sign in to comment.
Something went wrong with that request. Please try again.