- 03 Jan, 2017 1 commit
-
-
Max Kellermann authored
-
- 06 Mar, 2016 1 commit
-
-
Max Kellermann authored
The old check unsigned(value) > std::numeric_limits<unsigned>::max() .. cannot ever fail.
-
- 26 Feb, 2016 1 commit
-
-
Max Kellermann authored
-
- 18 Dec, 2015 1 commit
-
-
Max Kellermann authored
-
- 12 Aug, 2015 1 commit
-
-
Max Kellermann authored
-
- 11 Aug, 2015 4 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
Using unsigned(-1) renders undefined behavior.
-
Max Kellermann authored
-
Max Kellermann authored
-
- 01 Jan, 2015 1 commit
-
-
Max Kellermann authored
-
- 04 Sep, 2014 1 commit
-
-
Max Kellermann authored
Casting std::numeric_limits<unsigned>::max() to "long" leads to an overflow if sizeof(unsigned)==sizeof(long), and the result will be -1. This happens on some 32 bit architectures, for example ARM and WIN32. Workaround: use std::numeric_limits<int>::max(), which is the largest signed integer. Since sizeof(long)>=sizeof(int), this will never overflow. Fixes Mantis ticket 0004080.
-
- 29 Aug, 2014 1 commit
-
-
Max Kellermann authored
-
- 28 Aug, 2014 1 commit
-
-
Max Kellermann authored
-
- 13 Jan, 2014 1 commit
-
-
Max Kellermann authored
-
- 19 Oct, 2013 1 commit
-
-
Max Kellermann authored
-
- 17 Oct, 2013 1 commit
-
-
Max Kellermann authored
-
- 03 Jan, 2013 2 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-
- 14 Feb, 2012 1 commit
-
-
Max Kellermann authored
-