From: David Mitchell Date: Wed, 21 Apr 2010 13:53:39 +0000 (+0100) Subject: remove bool* cast from SAVEBOOL X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=026442172f79e2ebdf1b28bda4ff5f753e1702b2;p=p5sagit%2Fp5-mst-13.2.git 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. --- diff --git a/scope.h b/scope.h index 64e7e27..808108e 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))