Explorar o código

ncd: fix warning

ambrop7 %!s(int64=14) %!d(string=hai) anos
pai
achega
036c3f93a9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      ncd/NCDModule.c

+ 1 - 1
ncd/NCDModule.c

@@ -593,7 +593,7 @@ static int process_arg_object_func_getvar2 (NCDModuleProcess *o, void *n_ptr, co
         return 0;
     }
     
-    uintmax_t n = (uintmax_t)n_ptr - 1;
+    uintptr_t n = (uintptr_t)n_ptr - 1;
     
     *out_value = NCDVal_NewCopy(mem, NCDVal_ListGet(o->args, n));
     if (NCDVal_IsInvalid(*out_value)) {