aboutsummaryrefslogtreecommitdiffstats
path: root/src/protocol/ArgParser.cxx (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-09-04protocol/ArgParser: fix integer overflow in parse_range()Max Kellermann1-2/+2
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.
2014-08-29ArgParser: allow fractional seconds in ParseCommandArg(SongTime)Max Kellermann1-4/+4
2014-08-28Playlist: use std::chrono::duration for Seek*()Max Kellermann1-0/+23
2014-01-13copyright year 2014Max Kellermann1-1/+1
2013-10-19*: use references instead of pointersMax Kellermann1-6/+6
2013-10-17*: use std::numeric_limitsMax Kellermann1-13/+10
2013-01-03Client: rename the struct client to class ClientMax Kellermann1-6/+6
2013-01-03client: convert to C++Max Kellermann1-3/+3
2012-02-14command: move code to protocol/argparser.cMax Kellermann1-0/+191