[--snip-some-of-the-gyping-from-my-initial-diff--]
>       case AML_OBJTYPE_STRING:
> -             if (ival == -1)
> +             if (ival == (uint64_t)-1)

This is what I tried first as well. But this cast fails on my x61s where
ival is set to a 32-bit -1.

>                       ival = strlen((const char *)bval);
>               lhs->length = ival;
>               lhs->v_string = (char *)acpi_os_malloc(ival+1);

Reply via email to