DRW: Fix runtime error: shifting signed 32bits int

This commit is contained in:
Clément Foucault
2020-08-08 01:11:09 +02:00
parent cb7ea2ccfb
commit f742a7ac79

View File

@@ -582,7 +582,7 @@ uint32_t DRW_object_resource_id_get(Object *UNUSED(ob))
/* Handle not yet allocated. Return next handle. */
handle = DST.resource_handle;
}
return handle & ~(1 << 31);
return handle & ~(1u << 31);
}
static DRWResourceHandle drw_resource_handle(DRWShadingGroup *shgroup,