pack.c: raise error for unsupported w directive.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2021-06-13 14:21:51 +09:00
parent eaaa9148b5
commit bf2b06ced7
+1 -1
View File
@@ -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;