summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Moore <Robert.Moore@intel.com>2020-02-11 09:33:01 -0800
committerGitHub <noreply@github.com>2020-02-11 09:33:01 -0800
commit23714263544d06a18475641f2c1df23b178f4dca (patch)
treee92e113ca763f15ec45ae099d26989e3d3cbed15
parentfd581820348b6c00454f8b97c5d8fa02b73441b1 (diff)
parent0f64c317e769a63679442404421da1d5bd61068a (diff)
downloadacpica-23714263544d06a18475641f2c1df23b178f4dca.tar.gz
Merge pull request #558 from MiraySoftware/size-casts
Size casts
-rw-r--r--source/components/namespace/nsnames.c6
-rw-r--r--source/components/namespace/nsxfname.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/source/components/namespace/nsnames.c b/source/components/namespace/nsnames.c
index eebdd1a2d..a9509195c 100644
--- a/source/components/namespace/nsnames.c
+++ b/source/components/namespace/nsnames.c
@@ -336,7 +336,7 @@ AcpiNsHandleToPathname (
/* Build the path in the caller buffer */
(void) AcpiNsBuildNormalizedPath (Node, Buffer->Pointer,
- RequiredSize, NoTrailing);
+ (UINT32) RequiredSize, NoTrailing);
ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "%s [%X]\n",
(char *) Buffer->Pointer, (UINT32) RequiredSize));
@@ -509,7 +509,7 @@ AcpiNsGetNormalizedPathname (
/* Build the path in the allocated buffer */
- (void) AcpiNsBuildNormalizedPath (Node, NameBuffer, Size, NoTrailing);
+ (void) AcpiNsBuildNormalizedPath (Node, NameBuffer, (UINT32) Size, NoTrailing);
ACPI_DEBUG_PRINT_RAW ((ACPI_DB_NAMES, "%s: Path \"%s\"\n",
ACPI_GET_FUNCTION_NAME, NameBuffer));
@@ -542,7 +542,7 @@ AcpiNsBuildPrefixedPathname (
char *FullPath = NULL;
char *ExternalPath = NULL;
char *PrefixPath = NULL;
- UINT32 PrefixPathLength = 0;
+ ACPI_SIZE PrefixPathLength = 0;
/* If there is a prefix, get the pathname to it */
diff --git a/source/components/namespace/nsxfname.c b/source/components/namespace/nsxfname.c
index 5b3d5a9be..53a2f4bfa 100644
--- a/source/components/namespace/nsxfname.c
+++ b/source/components/namespace/nsxfname.c
@@ -714,7 +714,7 @@ AcpiInstallMethod (
MethodFlags = *ParserState.Aml++;
AmlStart = ParserState.Aml;
- AmlLength = ACPI_PTR_DIFF (ParserState.PkgEnd, AmlStart);
+ AmlLength = (UINT32) ACPI_PTR_DIFF (ParserState.PkgEnd, AmlStart);
/*
* Allocate resources up-front. We don't want to have to delete a new