diff options
author | Ori Bernstein <ori@eigenstate.org> | 2016-02-28 20:47:24 -0800 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2016-02-28 20:47:24 -0800 |
commit | b65a6892ddf9256e963df1f0818f22ca09f6b75b (patch) | |
tree | d4d87c07e9c5220334208312180c6dd2ef182ff7 /lisc | |
parent | 542d89bcd50a0dd43a490180547c88312bf0c7a6 (diff) | |
download | roux-b65a6892ddf9256e963df1f0818f22ca09f6b75b.tar.gz |
Error properly on strings.
Don't print junk when we don't have 'b' for a string.
Diffstat (limited to 'lisc')
-rw-r--r-- | lisc/emit.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lisc/emit.c b/lisc/emit.c index 180f468..f99cbdb 100644 --- a/lisc/emit.c +++ b/lisc/emit.c @@ -559,6 +559,8 @@ emitdat(Dat *d, FILE *f) } /* fallthrough */ default: + if (d->isstr) + err("strings only supported for 'b' currently"); if (d->isref) fprintf(f, "%s %s+%"PRId64"\n", dtoa[d->type], d->u.ref.nam, d->u.ref.off); else |