mirror of
git://c9x.me/qbe.git
synced 2026-04-06 10:29:46 +00:00
more error reporting in parsedat()
This commit is contained in:
parent
67db7b6578
commit
839dca331a
@ -763,6 +763,7 @@ parsedat(void cb(Dat *))
|
|||||||
err("data contents must be { .. } or \" .. \"");
|
err("data contents must be { .. } or \" .. \"");
|
||||||
for (;;) {
|
for (;;) {
|
||||||
switch (nextnl()) {
|
switch (nextnl()) {
|
||||||
|
default: err("invalid size specifier in data");
|
||||||
case TL: d.type = DL; break;
|
case TL: d.type = DL; break;
|
||||||
case TW: d.type = DW; break;
|
case TW: d.type = DW; break;
|
||||||
case TH: d.type = DH; break;
|
case TH: d.type = DH; break;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user