DRW: Fix warning on MSVC
authorClément Foucault <foucault.clem@gmail.com>
Thu, 16 May 2019 12:16:47 +0000 (14:16 +0200)
committerClément Foucault <foucault.clem@gmail.com>
Fri, 17 May 2019 11:38:42 +0000 (13:38 +0200)
source/blender/draw/intern/draw_manager_exec.c

index f76c46a..bb4e807 100644 (file)
@@ -881,7 +881,7 @@ enum {
 
 static void set_bound_flags(uint64_t *slots, uint64_t *persist_slots, int slot_idx, char bind_type)
 {
-  uint64_t slot = 1lu << slot_idx;
+  uint64_t slot = 1lu << (unsigned long)slot_idx;
   *slots |= slot;
   if (bind_type == BIND_PERSIST) {
     *persist_slots |= slot;