mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-25 04:11:44 +00:00
e6149128a4
This should be used for reading signed integers from files where they're stored in 2's complements (as all modern processors use). In cases where the unsigned integer is bigger than the maximum signed integer, static_cast<>ing is an implementation-defined behavior. The code was adopted from the following answer on Stack Overflow where they discuss an implementation that avoids such implementation-defined behavior: https://stackoverflow.com/a/13208789/507077 |
||
---|---|---|
.. | ||
common | ||
data/text | ||
merge | ||
propedit | ||
init.cpp | ||
init.h | ||
Rakefile | ||
util.cpp | ||
util.h |