summaryrefslogtreecommitdiff
path: root/scope.h
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2010-04-21 14:53:39 +0100
committerDavid Mitchell <davem@iabyn.com>2010-04-21 14:55:32 +0100
commit026442172f79e2ebdf1b28bda4ff5f753e1702b2 (patch)
tree64501cf4eb393fd1b1457f0ba155c921a34f4484 /scope.h
parent94fa954eaae532928977ae7f7290536783269b6e (diff)
downloadperl-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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/scope.h b/scope.h
index 64e7e279f1..808108ebcc 100644
--- a/scope.h
+++ b/scope.h
@@ -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))