Commit b4415207 authored by Tomoyuki Sahara's avatar Tomoyuki Sahara

Merge pull request #2 from kazuho/kazuho/mrbint64

cast `mrb_int` to `int` before applying sprintf "%d"
parents dfb471b4 b14df08b
......@@ -43,7 +43,7 @@ mrb_sce_init(mrb_state *mrb, mrb_value self)
} else {
mrb_iv_set(mrb, self, mrb_intern_lit(mrb, "errno"), mrb_fixnum_value(n));
str = mrb_str_new_cstr(mrb, "Unknown error: ");
snprintf(buf, sizeof(buf), "%d", n);
snprintf(buf, sizeof(buf), "%d", (int)n);
mrb_str_cat2(mrb, str, buf);
}
} else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment