From ed18621a76c6a08858a4fce0411ffd9c87e3fb3e Mon Sep 17 00:00:00 2001 From: "wchang0222%aol.com" Date: Thu, 29 Apr 2004 00:40:05 +0000 Subject: Bugzilla bug 123403: LL_INIT should use PR_UINT32 because the hi and lo fields of the PRInt64 structure are PRUint32. The patch is contributed by timeless@bemail.org. r=wtc. Tag: NSPRPUB_PRE_4_2_CLIENT_BRANCH --- pr/include/prlong.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pr/include/prlong.h b/pr/include/prlong.h index 78240092..f0e81506 100644 --- a/pr/include/prlong.h +++ b/pr/include/prlong.h @@ -202,9 +202,9 @@ NSPR_API(PRUint64) LL_MaxUint(void); #else /* !HAVE_LONG_LONG */ #ifdef IS_LITTLE_ENDIAN -#define LL_INIT(hi, lo) {PR_INT32(lo), PR_INT32(hi)} +#define LL_INIT(hi, lo) {PR_UINT32(lo), PR_UINT32(hi)} #else -#define LL_INIT(hi, lo) {PR_INT32(hi), PR_INT32(lo)} +#define LL_INIT(hi, lo) {PR_UINT32(hi), PR_UINT32(lo)} #endif #define LL_IS_ZERO(a) (((a).hi == 0) && ((a).lo == 0)) -- cgit v1.2.1