diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2020-04-22 06:47:32 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2020-04-22 06:47:32 -0700 |
commit | 1a0ec42b1227510b05ff0a4f62baced37fc57c71 (patch) | |
tree | bc83ee9e7bc0cbc75a57ff58b6096f825bc3fdbb /parser.l | |
parent | 7fef3c0d7cdad433fbf614ad4b5c30b7f99814c8 (diff) | |
download | txr-1a0ec42b1227510b05ff0a4f62baced37fc57c71.tar.gz txr-1a0ec42b1227510b05ff0a4f62baced37fc57c71.tar.bz2 txr-1a0ec42b1227510b05ff0a4f62baced37fc57c71.zip |
parser: C++ cast fix.
* parser.l (YY_INPUT): Must use coerce because we are changing
from char * to unsigned char *.
Diffstat (limited to 'parser.l')
-rw-r--r-- | parser.l | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -55,7 +55,7 @@ #define YY_INPUT(buf, result, max_size) \ do { \ val n = get_bytes(lit("parser"), yyextra->stream, \ - convert(mem_t *, buf), max_size); \ + coerce(mem_t *, buf), max_size); \ result = c_num(n); \ } while (0) |