Constified code_loc_gen

This commit is contained in:
Nobuyoshi Nakada 2020-05-14 17:15:03 +09:00
parent 4a620aff8d
commit 0a52015da7
No known key found for this signature in database
GPG Key ID: 7CD2805BFA3770C6

2
node.h
View File

@ -137,7 +137,7 @@ typedef struct rb_code_location_struct {
} rb_code_location_t;
static inline rb_code_location_t
code_loc_gen(rb_code_location_t *loc1, rb_code_location_t *loc2)
code_loc_gen(const rb_code_location_t *loc1, const rb_code_location_t *loc2)
{
rb_code_location_t loc;
loc.beg_pos = loc1->beg_pos;