diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-06-13 14:21:51 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-06-13 14:21:51 +0900 |
| commit | bf2b06ced78fb0d7d3d120d6db50eab72f0389c5 (patch) | |
| tree | c458d958e8eb3224a3f46d346b316745774b29a1 /mrbgems/mruby-pack | |
| parent | eaaa9148b532a60daf92dfde1c37530194f2060d (diff) | |
| download | mruby-bf2b06ced78fb0d7d3d120d6db50eab72f0389c5.tar.gz mruby-bf2b06ced78fb0d7d3d120d6db50eab72f0389c5.zip | |
pack.c: raise error for unsupported `w` directive.
Diffstat (limited to 'mrbgems/mruby-pack')
| -rw-r--r-- | mrbgems/mruby-pack/src/pack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-pack/src/pack.c b/mrbgems/mruby-pack/src/pack.c index 3e73a7181..fe3420f36 100644 --- a/mrbgems/mruby-pack/src/pack.c +++ b/mrbgems/mruby-pack/src/pack.c @@ -1228,7 +1228,7 @@ alias: type = PACK_TYPE_STRING; flags |= PACK_FLAG_WIDTH | PACK_FLAG_COUNT2 | PACK_FLAG_Z; break; - case 'p': case 'P': + case 'p': case 'P': case 'w': case '%': mrb_raisef(mrb, E_ARGUMENT_ERROR, "%c is not supported", (char)t); break; |
