Cycles: Fix broken 32 bit shift.

1ul << n will still be a 32 bit integer regardless
of the value of n, given the target here is 64 bits
the upper 32 bits will always be zero. Using 1ull
will yield the expected result.
This commit is contained in:
Ray molenkamp 2020-10-01 10:19:50 -06:00
parent ec723ad25c
commit 84e122e38a
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ void NodeType::register_input(ustring name,
socket.node_type = node_type;
socket.flags = flags | extra_flags;
assert(inputs.size() < std::numeric_limits<SocketModifiedFlags>::digits);
socket.modified_flag_bit = (1ul << inputs.size());
socket.modified_flag_bit = (1ull << inputs.size());
inputs.push_back(socket);
}