mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-27 22:39:53 +00:00
arghex uses strtoll and returns unsigned
This commit is contained in:
parent
b7cf820976
commit
92f6521e42
@ -75,7 +75,7 @@ namespace arg {
|
|||||||
const string& args() { return argument[pos]; }
|
const string& args() { return argument[pos]; }
|
||||||
const char* argcs() { return args().c_str(); }
|
const char* argcs() { return args().c_str(); }
|
||||||
int argi() { return atoi(argcs()); }
|
int argi() { return atoi(argcs()); }
|
||||||
int arghex() { return strtol(argcs(), NULL, 16); }
|
unsigned arghex() { return strtoll(argcs(), NULL, 16); }
|
||||||
ld argf() { return atof(argcs()); }
|
ld argf() { return atof(argcs()); }
|
||||||
bool argis(const string& s) { return args() == s; }
|
bool argis(const string& s) { return args() == s; }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user