DRW: Fix runtime error: shifting signed 32bits int
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user