summaryrefslogtreecommitdiffstats
path: root/parser.l
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2020-04-22 06:47:32 -0700
committerKaz Kylheku <kaz@kylheku.com>2020-04-22 06:47:32 -0700
commit1a0ec42b1227510b05ff0a4f62baced37fc57c71 (patch)
treebc83ee9e7bc0cbc75a57ff58b6096f825bc3fdbb /parser.l
parent7fef3c0d7cdad433fbf614ad4b5c30b7f99814c8 (diff)
downloadtxr-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.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/parser.l b/parser.l
index 52f30f2f..5298efdb 100644
--- a/parser.l
+++ b/parser.l
@@ -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)