mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-08-30 09:17:57 +00:00
arghex uses strtoll and returns unsigned
This commit is contained in:
@@ -75,7 +75,7 @@ namespace arg {
|
||||
const string& args() { return argument[pos]; }
|
||||
const char* argcs() { return args().c_str(); }
|
||||
int argi() { return atoi(argcs()); }
|
||||
int arghex() { return strtol(argcs(), NULL, 16); }
|
||||
unsigned arghex() { return strtoll(argcs(), NULL, 16); }
|
||||
ld argf() { return atof(argcs()); }
|
||||
bool argis(const string& s) { return args() == s; }
|
||||
|
||||
|
Reference in New Issue
Block a user