[lib][console] Add an unsigned long long to console_cmd_args
Add and populate an unsigned long long element in the console_cmd_args struct. This enables handling of 64 bit values on 32 bit targets.
This commit is contained in:
committed by
Travis Geiselbrecht
parent
47c8b9a711
commit
af844a2ff6
@@ -554,6 +554,7 @@ static void convert_args(int argc, console_cmd_args *argv) {
|
||||
argv[i].u = u;
|
||||
argv[i].p = (void *)u;
|
||||
argv[i].i = atol(argv[i].str);
|
||||
argv[i].ull = atoull(argv[i].str);
|
||||
|
||||
if (!strcmp(argv[i].str, "true") || !strcmp(argv[i].str, "on")) {
|
||||
argv[i].b = true;
|
||||
|
||||
@@ -18,6 +18,7 @@ __BEGIN_CDECLS
|
||||
typedef struct {
|
||||
const char *str;
|
||||
unsigned long u;
|
||||
unsigned long long ull;
|
||||
void *p;
|
||||
long i;
|
||||
bool b;
|
||||
|
||||
Reference in New Issue
Block a user