[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:
Aaron Odell
2023-03-24 18:23:47 -07:00
committed by Travis Geiselbrecht
parent 47c8b9a711
commit af844a2ff6
2 changed files with 2 additions and 0 deletions

View File

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

View File

@@ -18,6 +18,7 @@ __BEGIN_CDECLS
typedef struct {
const char *str;
unsigned long u;
unsigned long long ull;
void *p;
long i;
bool b;