-
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.
421c4ae9
| Name |
Last commit
|
Last update |
|---|---|---|
| doc | ||
| m4 | ||
| scripts | ||
| src | ||
| test | ||
| .gitignore | ||
| AUTHORS | ||
| COPYING | ||
| INSTALL | ||
| Makefile.am | ||
| NEWS | ||
| README | ||
| UPGRADING | ||
| autogen.sh | ||
| configure.ac | ||
| mpd.service.in | ||
| valgrind.suppressions |