st/oxr: Fix some 32-bit porting warnings.

This commit is contained in:
Ryan Pavlik 2020-03-02 16:32:13 -06:00 committed by Jakob Bornecrantz
parent 4d7a8d819c
commit 163b39b7a1
2 changed files with 3 additions and 3 deletions

View file

@ -290,7 +290,7 @@ oxr_xrGetInstanceProcAddr(XrInstance instance,
// We need to set this unconditionally, per the spec.
*function = NULL;
if (instance == NULL) {
if ((void *)instance == NULL) {
oxr_log_init(&log, "xrGetInstanceProcAddr");
return handle_null(&log, name, function);
}

View file

@ -18,7 +18,7 @@ extern "C" {
lookup) \
do { \
oxr_log_init(log, name); \
if (thing == NULL) { \
if ((void *)thing == NULL) { \
return oxr_error(log, XR_ERROR_HANDLE_INVALID, \
"(" #thing " == NULL)"); \
} \
@ -40,7 +40,7 @@ extern "C" {
#define _OXR_VERIFY_SET(log, arg, new_arg, THING) \
do { \
if (arg == NULL) { \
if ((void *)arg == NULL) { \
return oxr_error(log, XR_ERROR_HANDLE_INVALID, \
"(" #arg " == NULL)"); \
} \