diff options
author | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2015-10-25 14:27:44 -0400 |
---|---|---|
committer | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2015-10-30 13:20:42 -0400 |
commit | 9c29630dbf64dc8768483a2482e63929ea08f5c3 (patch) | |
tree | ba43f6dd65522ab6133da65f5607ca18a5d3c4f6 /lisc | |
parent | 10ef1c132b05593236fc64432f3b9d9849aa5177 (diff) | |
download | roux-9c29630dbf64dc8768483a2482e63929ea08f5c3.tar.gz |
small fix in memory refs emission
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 1a98e0f..8fbaa05 100644 --- a/lisc/emit.c +++ b/lisc/emit.c @@ -128,6 +128,8 @@ Next: } if (m->offset.type != CUndef) emitcon(&m->offset, f); + if (req(m->base, R) && req(m->index, R)) + break; fputc('(', f); if (!req(m->base, R)) fprintf(f, "%%%s", rsub[m->base.val][SLong]); |