Skip to content

Commit 128b5f0

Browse files
committed
toke.c: Initialize variable to avoid compiler warning
The MingW compiler thinks this can be used unininitalized, even though I don't think it can. Just initialize it to 0.
1 parent 8ed690e commit 128b5f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

toke.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12458,7 +12458,7 @@ Perl_scan_num(pTHX_ const char *start, YYSTYPE* lvalp)
1245812458
const char *lastub = NULL; /* position of last underbar */
1245912459
static const char* const number_too_long = "Number too long";
1246012460
bool warned_about_underscore = 0;
12461-
I32 shift; /* shift per digit for hex/oct/bin, hoisted here for fp */
12461+
I32 shift = 0; /* shift per digit for hex/oct/bin, hoisted here for fp */
1246212462
#define WARN_ABOUT_UNDERSCORE() \
1246312463
do { \
1246412464
if (!warned_about_underscore) { \

0 commit comments

Comments
 (0)