ARGNUMF() only works on base 10 as it uses strtonum underneath

This commit is contained in:
sin
2015-01-30 16:45:44 +00:00
parent fd562481f3
commit b66c44b24e
4 changed files with 4 additions and 4 deletions

2
arg.h
View File

@@ -46,7 +46,7 @@ extern char *argv0;
#define ARGC() argc_
#define ARGNUMF(base) (brk_ = 1, estrtonum(argv[0], 0, INT_MAX))
#define ARGNUMF() (brk_ = 1, estrtonum(argv[0], 0, INT_MAX))
#define EARGF(x) ((argv[0][1] == '\0' && argv[1] == NULL)?\
((x), abort(), (char *)0) :\