From 97ce25fbd0766a83780e036ff2709c0089cf213e Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Sat, 21 Sep 2013 17:15:58 +0900 Subject: index to mrb_digitmap[] should always be positive --- src/string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/string.c') diff --git a/src/string.c b/src/string.c index fa581f025..90852943e 100644 --- a/src/string.c +++ b/src/string.c @@ -1500,7 +1500,7 @@ mrb_ptr_to_str(mrb_state *mrb, void *p) struct RString *p_str; char *p1; char *p2; - intptr_t n = (intptr_t)p; + uintptr_t n = (uintptr_t)p; p_str = str_new(mrb, NULL, 2 + sizeof(uintptr_t) * CHAR_BIT / 4); p1 = p_str->ptr; -- cgit v1.2.3