Skip to content

Commit bbd568b

Browse files
committed
grok_bin_oct_hex: Make a parameter const
This prevents a future maintainer from accidentally changing this pointer inside the function, where its original value is needed at the end
1 parent bd5b5b5 commit bbd568b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

embed.fnc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1404,7 +1404,7 @@ AMdp |UV |grok_bin |NN const char *start \
14041404
|NN I32 *flags \
14051405
|NULLOK NV *result
14061406
Cp |UV |grok_bin_oct_hex \
1407-
|NN const char *start \
1407+
|NN const char * const start \
14081408
|NN STRLEN *len_p \
14091409
|NN I32 *flags \
14101410
|NULLOK NV *result \

numeric.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ S_output_non_portable(pTHX_ const U8 base)
365365
}
366366

367367
UV
368-
Perl_grok_bin_oct_hex(pTHX_ const char *start,
368+
Perl_grok_bin_oct_hex(pTHX_ const char * const start,
369369
STRLEN *len_p,
370370
I32 *flags,
371371
NV *result,

proto.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)