summaryrefslogtreecommitdiff
path: root/parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'parser.c')
-rw-r--r--parser.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/parser.c b/parser.c
index fad03e2..9b7f617 100644
--- a/parser.c
+++ b/parser.c
@@ -369,6 +369,9 @@ insn *parse_line(int pass, char *buffer, insn * result,
eop->type = EOT_DB_STRING;
result->eops_float = true;
switch (result->opcode) {
+ case I_DB:
+ eop->stringlen = 1;
+ break;
case I_DW:
eop->stringlen = 2;
break;
@@ -386,7 +389,7 @@ insn *parse_line(int pass, char *buffer, insn * result,
break;
default:
error(ERR_NONFATAL, "floating-point constant"
- " encountered in `db' instruction");
+ " encountered in unknown instruction");
/*
* fix suggested by Pedro Gimeno... original line
* was: