diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-12-07 06:18:30 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-12-07 06:18:30 -0800 |
commit | 7ed9432eed94beef4f35f16df2c0bd53dd2ce4bc (patch) | |
tree | 4ac21fd4f2aa8f8ef67f424ab5a93d83c70e8bfd /txr.c | |
parent | 0a97556f505334bcf48987129b3d35c48efdbb62 (diff) | |
download | txr-7ed9432eed94beef4f35f16df2c0bd53dd2ce4bc.tar.gz txr-7ed9432eed94beef4f35f16df2c0bd53dd2ce4bc.tar.bz2 txr-7ed9432eed94beef4f35f16df2c0bd53dd2ce4bc.zip |
Fix some C style casts to use casting macros.
This is uncovered by compiling with g++ using
-Wold-style-cast.
* mpi/mpi.c (mp_get_intptr): Use convert macro.
Also in one of the rules producing REGCHAR.
* parser.l (num_esc): Likewise.
* struct.c (static_slot_set, static_slot_ens_rec,
get_equal_method): Use coerce macro for int to pointer
conversion.
* sysif.c (setgroups_wrap): Use convert macro.
* termios.c (termios_unpack, termios_pack): Likewise.
* txr.c (sysroot_init): Likewise.
Diffstat (limited to 'txr.c')
-rw-r--r-- | txr.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -304,7 +304,7 @@ static void sysroot_init(void) #if HAVE_WINDOWS_H val slash = regex_compile(lit("\\\\"), nil); #endif - protect(&prog_path, &sysroot_path, &stdlib_path, (val *) 0); + protect(&prog_path, &sysroot_path, &stdlib_path, convert(val *, 0)); prog_path = get_self_path(); #if HAVE_WINDOWS_H prog_path = regsub(slash, lit("/"), prog_path); |