summaryrefslogtreecommitdiff
path: root/include/mbgl/util/geo.hpp
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2015-11-11 15:24:59 -0800
committerMinh Nguyễn <mxn@1ec5.org>2015-11-12 10:46:47 -0800
commit6748b6155e0bdb61aa33ecfe467711ce7e1189c3 (patch)
tree5850f61ba16ce77542bedab0ae85bc9000417bb1 /include/mbgl/util/geo.hpp
parentaae7f90e37ac9c074c3bc2205116d9827045027c (diff)
downloadqtlocation-mapboxgl-6748b6155e0bdb61aa33ecfe467711ce7e1189c3.tar.gz
[core] Fixed bit-shifting error in exponential backoff
This change fixes a bug introduced in 4d5c6333be52aae4a9c72f4b01941e16ead503f4 for #2727. 1 << 32 would exceed the size of int64_t. The static analyzer reported undefined behavior here because std::min() might or might not return 32.
Diffstat (limited to 'include/mbgl/util/geo.hpp')
0 files changed, 0 insertions, 0 deletions