From 0a52015da7c4895363e239387e749e4b1f63b198 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 14 May 2020 17:15:03 +0900 Subject: [PATCH] Constified code_loc_gen --- node.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;