Commit 75f8e4cd authored by Igor Chorazewicz's avatar Igor Chorazewicz
Browse files

common: use explicit conversions

to avoid sign-conversion warnings. All values used in indexing and persistent_ptr
arithmetic operations are explicitly casted to uint64_t.

Based on well-defined unsinged overflow arithmetic and standard guarantees about integer
conversions:

[conv.integral]
If the destination type is unsigned, the resulting value is the least unsigned integer congruent to the source
integer (modulo 2
n where n is the number of bits used to represent the unsigned type).
parent 182a1094
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