summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-05-14 17:15:03 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-05-14 17:15:24 +0900
commit0a52015da7c4895363e239387e749e4b1f63b198 (patch)
tree60061671da43babe42ddf5e60cbd28a8ef45899f
parent4a620aff8d1098900c8d0f336b2698ed1256621c (diff)
Constified code_loc_gen
-rw-r--r--node.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/node.h b/node.h
index 504153ab14..805491b87e 100644
--- a/node.h
+++ b/node.h
@@ -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;