cvs commit: src/sys/dev/acpica acpi.c

Nate Lawson nate at root.org
Thu May 27 23:33:39 PDT 2004


On Thu, 27 May 2004, Marcel Moolenaar wrote:
> marcel      2004/05/27 19:50:43 PDT
>
>   FreeBSD src repository
>
>   Modified files:
>     sys/dev/acpica       acpi.c
>   Log:
>   Fix LP64 environments: cast a pointer type to intptr_t before casting
>   to int and vice versa.
>
>   Revision  Changes    Path
>   1.148     +2 -2      src/sys/dev/acpica/acpi.c
>
> @@ -1877,7 +1877,7 @@
>      if (acpi_parse_prw(h, &prw) != 0)
>  	return (AE_OK);
>
> -    sstate = (int)context;
> +    sstate = (int)(intptr_t)context;
>      if (sstate > prw.lowest_wake)
>  	AcpiDisableGpe(prw.gpe_handle, prw.gpe_bit, ACPI_NOT_ISR);
>

Thanks, I fixed this slightly differently just now.

-Nate


More information about the cvs-all mailing list