diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-06-06 05:44:34 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-06-06 05:45:51 +0400 |
commit | 81afc124420f4bdef6508698e18fd4319b1fa76d (patch) | |
tree | 5b81c61aa3876f88ed099cc247caf6169e5f38e3 /source/blender/makesdna | |
parent | 0b0bac846c0e24c6013271fbc11fae1d5424172c (diff) |
Code cleanup: remove redundant void*->int->bool cast on NULL pointer
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/intern/dna_genfile.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/makesdna/intern/dna_genfile.c b/source/blender/makesdna/intern/dna_genfile.c index bc1ee28d582..f60562f1ac9 100644 --- a/source/blender/makesdna/intern/dna_genfile.c +++ b/source/blender/makesdna/intern/dna_genfile.c @@ -1304,8 +1304,9 @@ bool DNA_struct_elem_find(SDNA *sdna, const char *stype, const char *vartype, co const short * const spo = sdna->structs[SDNAnr]; const char * const cp = find_elem(sdna, vartype, name, spo, NULL, NULL); - if (cp) return true; - return (int)((intptr_t)cp); + if (cp) { + return true; + } } return false; } |