summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2018-10-14 16:10:01 -0600
committerKarl Williamson <khw@cpan.org>2018-10-20 00:09:55 -0600
commita9f8f0e7ea8fdf2c9f0e78f6e01b9ef605907200 (patch)
tree07cb4569bd40110b14ac6180ed9511057ab3fffe /regcomp.c
parente3f47c2f4d2eacb0570803023a6dd9c010aac7f4 (diff)
downloadperl-a9f8f0e7ea8fdf2c9f0e78f6e01b9ef605907200.tar.gz
regcomp.c: Add some const's to static fcn
Since it's static, the compiler can figure out these are consts, but knowing this helped me read the code
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/regcomp.c b/regcomp.c
index 299ab2104c..5a5ef57b51 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -19322,8 +19322,8 @@ S_reg2Lanode(pTHX_ RExC_state_t *pRExC_state, const U8 op, const U32 arg1, const
* ALSO NOTE - FLAGS(newly-inserted-operator) will be set to 0 as well.
*/
STATIC void
-S_reginsert(pTHX_ RExC_state_t *pRExC_state, U8 op,
- regnode_offset operand, U32 depth)
+S_reginsert(pTHX_ RExC_state_t *pRExC_state, const U8 op,
+ const regnode_offset operand, const U32 depth)
{
regnode *src;
regnode *dst;