pack.c: raise error for unsupported `w` directive.

parent eaaa9148
...@@ -1228,7 +1228,7 @@ alias: ...@@ -1228,7 +1228,7 @@ alias:
type = PACK_TYPE_STRING; type = PACK_TYPE_STRING;
flags |= PACK_FLAG_WIDTH | PACK_FLAG_COUNT2 | PACK_FLAG_Z; flags |= PACK_FLAG_WIDTH | PACK_FLAG_COUNT2 | PACK_FLAG_Z;
break; break;
case 'p': case 'P': case 'p': case 'P': case 'w':
case '%': case '%':
mrb_raisef(mrb, E_ARGUMENT_ERROR, "%c is not supported", (char)t); mrb_raisef(mrb, E_ARGUMENT_ERROR, "%c is not supported", (char)t);
break; break;
......
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