Code cleanup: remove redundant void*->int->bool cast on NULL pointer

This commit is contained in:
Campbell Barton 2014-06-06 11:44:34 +10:00
parent 0b0bac846c
commit 81afc12442
Notes: blender-bot 2023-02-14 10:31:55 +01:00
Referenced by issue #40529, Euler Rotation F-Curve Handlers wrong behaviour on moving keyframes.
Referenced by issue #40521, Empty space in modifier stack
Referenced by issue #40522, Viewport layer name is not redrawed
1 changed files with 3 additions and 2 deletions

View File

@ -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;
}