diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-10-25 19:53:25 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-10-25 19:53:25 -0700 |
commit | 66229085bbd92dc75dc0bb9bc4d34c8438c48b1d (patch) | |
tree | 41316891d7cdc7c59683d87fd6fc420bf3745a7c /lib.h | |
parent | 118dc224ef5f1481dddfb96a98b84d9a97bd91e6 (diff) | |
download | txr-66229085bbd92dc75dc0bb9bc4d34c8438c48b1d.tar.gz txr-66229085bbd92dc75dc0bb9bc4d34c8438c48b1d.tar.bz2 txr-66229085bbd92dc75dc0bb9bc4d34c8438c48b1d.zip |
fixparam: signed/unsigned warning from GNU C++.
* lib.h (FIXPARAM_MAX): Switch constant to signed type.
* lib.c (func_vm): Use num instead of unum on FIXPARAM_MAX,
since we are making it signed.
Diffstat (limited to 'lib.h')
-rw-r--r-- | lib.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -148,7 +148,7 @@ struct package { typedef struct args *varg; #define FIXPARAM_BITS 7 -#define FIXPARAM_MAX ((1U << FIXPARAM_BITS) - 1) +#define FIXPARAM_MAX ((1 << FIXPARAM_BITS) - 1) struct func { obj_common; |