Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Molenkamp <github@lazydodo.com>2018-09-25 18:23:00 +0300
committerRay Molenkamp <github@lazydodo.com>2018-09-25 18:23:00 +0300
commitbd51cada8db64e45cabca66cd61438c1ae2bdf25 (patch)
tree664c98e9c64b3053e7cd052026e391d8cb060640 /source/blender/depsgraph
parent2f00f5b98f99d0e417645ff2689f51247d5def94 (diff)
depsgraph: Fix 32 bit shift bug in get_visible_components_mask.
1 << n results in a 32 bit result, 1UL << n retains all 64 bits.
Diffstat (limited to 'source/blender/depsgraph')
-rw-r--r--source/blender/depsgraph/intern/nodes/deg_node_id.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/depsgraph/intern/nodes/deg_node_id.cc b/source/blender/depsgraph/intern/nodes/deg_node_id.cc
index caf7c8da3c1..5839cf11e67 100644
--- a/source/blender/depsgraph/intern/nodes/deg_node_id.cc
+++ b/source/blender/depsgraph/intern/nodes/deg_node_id.cc
@@ -230,7 +230,7 @@ IDComponentsMask IDDepsNode::get_visible_components_mask() const {
if (comp_node->affects_directly_visible) {
const int component_type = comp_node->type;
BLI_assert(component_type < 64);
- result |= (1 << component_type);
+ result |= (1UL << component_type);
}
}
GHASH_FOREACH_END();