1
0
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:
Zeno Rogue 2018-07-09 18:07:47 +02:00
parent b7cf820976
commit 92f6521e42
2 changed files with 2 additions and 2 deletions

View File

@ -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; }

View File

@ -1797,7 +1797,7 @@ namespace arg {
int argi();
ld argf();
bool argis(const string& s);
int arghex();
unsigned arghex();
void init(int _argc, char **_argv);