From 0253841ac172c3b5e8376d57805a66cef897877d Mon Sep 17 00:00:00 2001 From: "pkw%us.ibm.com" Date: Thu, 15 May 2003 22:24:24 +0000 Subject: [PATCH] Bug 205812 - nsHTMLEntities.cpp fails to build in 64-bit mode on AIX. r=harishd@netscape.com, sr=alecf@flett.org, a=asa@mozilla.org git-svn-id: svn://10.0.0.236/trunk@142516 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/htmlparser/src/nsHTMLEntities.cpp | 2 +- mozilla/parser/htmlparser/src/nsHTMLEntities.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/htmlparser/src/nsHTMLEntities.cpp b/mozilla/htmlparser/src/nsHTMLEntities.cpp index 62ebe04ef38..508dddc577e 100644 --- a/mozilla/htmlparser/src/nsHTMLEntities.cpp +++ b/mozilla/htmlparser/src/nsHTMLEntities.cpp @@ -91,7 +91,7 @@ PR_STATIC_CALLBACK(PLDHashNumber) hashUnicodeValue(PLDHashTable*, const void* key) { // key is actually the unicode value - return PLDHashNumber(key); + return PLDHashNumber(NS_PTR_TO_INT32(key)); } diff --git a/mozilla/parser/htmlparser/src/nsHTMLEntities.cpp b/mozilla/parser/htmlparser/src/nsHTMLEntities.cpp index 62ebe04ef38..508dddc577e 100644 --- a/mozilla/parser/htmlparser/src/nsHTMLEntities.cpp +++ b/mozilla/parser/htmlparser/src/nsHTMLEntities.cpp @@ -91,7 +91,7 @@ PR_STATIC_CALLBACK(PLDHashNumber) hashUnicodeValue(PLDHashTable*, const void* key) { // key is actually the unicode value - return PLDHashNumber(key); + return PLDHashNumber(NS_PTR_TO_INT32(key)); }