Exception: Constructor now takes printf style arguments

This commit is contained in:
Jonas Kulla 2013-12-29 18:05:11 +01:00
parent 5b736bcfd6
commit 9759e52b3c
7 changed files with 20 additions and 30 deletions

View file

@ -548,8 +548,8 @@ read_value(MarshalContext *ctx)
break;
default :
throw Exception(Exception::MKXPError, "Marshal.load: unsupported value type '%s'",
std::string(1, (char)type));
throw Exception(Exception::MKXPError, "Marshal.load: unsupported value type '%c'",
(char) type);
}
mrb_gc_arena_restore(mrb, arena);