diff --git a/source/components/resources/rsxface.c b/source/components/resources/rsxface.c index ba0bb1a63..089dbca36 100644 --- a/source/components/resources/rsxface.c +++ b/source/components/resources/rsxface.c @@ -1,7 +1,7 @@ /******************************************************************************* * * Module Name: rsxface - Public interfaces to the resource manager - * $Revision: 1.29 $ + * $Revision: 1.30 $ * ******************************************************************************/ @@ -342,7 +342,8 @@ AcpiWalkResources ( /* Setup pointers */ Resource = (ACPI_RESOURCE *) Buffer.Pointer; - BufferEnd = (ACPI_RESOURCE *) ((UINT8 *) Buffer.Pointer + Buffer.Length); + BufferEnd = ACPI_CAST_PTR (ACPI_RESOURCE, + ((UINT8 *) Buffer.Pointer + Buffer.Length)); /* Walk the resource list */