diff options
author | David Mitchell <davem@iabyn.com> | 2010-04-21 14:53:39 +0100 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2010-04-21 14:55:32 +0100 |
commit | 026442172f79e2ebdf1b28bda4ff5f753e1702b2 (patch) | |
tree | 64501cf4eb393fd1b1457f0ba155c921a34f4484 /scope.h | |
parent | 94fa954eaae532928977ae7f7290536783269b6e (diff) | |
download | perl-026442172f79e2ebdf1b28bda4ff5f753e1702b2.tar.gz |
remove bool* cast from SAVEBOOL
SAVEBOOL() should only be used on variables of type bool; casting
pointers to variables of other types into bool* is just wrong.
Diffstat (limited to 'scope.h')
-rw-r--r-- | scope.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -162,7 +162,7 @@ scope has the given name. Name must be a literal string. #define SAVEINT(i) save_int((int*)&(i)) #define SAVEIV(i) save_iv((IV*)&(i)) #define SAVELONG(l) save_long((long*)&(l)) -#define SAVEBOOL(b) save_bool((bool*)&(b)) +#define SAVEBOOL(b) save_bool(&(b)) #define SAVESPTR(s) save_sptr((SV**)&(s)) #define SAVEPPTR(s) save_pptr((char**)&(s)) #define SAVEVPTR(s) save_vptr((void*)&(s)) |