diff options
author | Adrian Thurston <thurston@complang.org> | 2015-03-01 13:53:00 -0500 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2015-03-01 13:53:20 -0500 |
commit | b2a6b17f584b4bfcedbb405a65d020506cd82458 (patch) | |
tree | 8d65e4e5c2b639782c0c533fcc38533e6900aaaf /src/string.c | |
parent | 848106870a46f39e4537253900512f44282e55df (diff) | |
download | colm-b2a6b17f584b4bfcedbb405a65d020506cd82458.tar.gz |
various minor cleanup in bytecode
Diffstat (limited to 'src/string.c')
-rw-r--r-- | src/string.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/string.c b/src/string.c index 528229d0..ba55923c 100644 --- a/src/string.c +++ b/src/string.c @@ -258,12 +258,12 @@ Head *makeLiteral( Program *prg, long offset ) prg->rtd->litlen[offset] ); } -Head *stringSprintf( Program *prg, Str *format, Int *integer ) +Head *stringSprintf( Program *prg, Str *format, long integer ) { Head *formatHead = format->value; - long written = snprintf( 0, 0, stringData(formatHead), (long)integer ); + long written = snprintf( 0, 0, stringData(formatHead), integer ); Head *head = initStrSpace( written+1 ); - written = snprintf( (char*)head->data, written+1, stringData(formatHead), (long)integer ); + written = snprintf( (char*)head->data, written+1, stringData(formatHead), integer ); head->length -= 1; return head; } |