Commit 786995a8 authored by Weiyi Wang's avatar Weiyi Wang Committed by fearlessTobi
Browse files

Common/Bitfield: store value as unsigned type

Storing signed type causes the following behaviour: extractValue can do overflow/negative left shift. Now it only relies on two implementation-defined behaviours (which are almost always defined as we want): unsigned->signed conversion and signed right shift
parent d104478f
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment