diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2018-05-18 06:08:48 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2018-05-18 06:08:48 -0700 |
commit | a7916fbac400497b6ac35da8a689a3c2cb68141d (patch) | |
tree | 2a80ef3fcdc35977cf51d37f7d6b2f25498ba778 /lib.c | |
parent | dbff4c5e634e23e3c957260ef8d7ddf59d81dbdb (diff) | |
download | txr-a7916fbac400497b6ac35da8a689a3c2cb68141d.tar.gz txr-a7916fbac400497b6ac35da8a689a3c2cb68141d.tar.bz2 txr-a7916fbac400497b6ac35da8a689a3c2cb68141d.zip |
C++ fixes related to recent Unicode work.
* lib.c (chk_wrealloc): convert needs to be a coerce.
* parser.l (grammar): Use yyg instead of yyscanner;
the latter is the same pointer but of void * type.
Diffstat (limited to 'lib.c')
-rw-r--r-- | lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2796,7 +2796,7 @@ wchar_t *chk_wrealloc(wchar_t *old, size_t nwchar) size_t size = nwchar * sizeof (wchar_t); if (size < nwchar) uw_throw(error_s, lit("string size overflow")); - return coerce(wchar_t *, chk_realloc(convert(mem_t *, old), + return coerce(wchar_t *, chk_realloc(coerce(mem_t *, old), sizeof (wchar_t) * nwchar)); } |