From 2da7c125c7e1b6c6d39f534d64a3a0c510a74484 Mon Sep 17 00:00:00 2001 From: "wchang0222%aol.com" Date: Mon, 6 Dec 2004 23:40:23 +0000 Subject: [PATCH] Bugzilla bug 151709: declare the temporary variables as PRInt32. --- nsprpub/pr/include/md/_linux.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nsprpub/pr/include/md/_linux.h b/nsprpub/pr/include/md/_linux.h index 66e0ccf47d8..96e8f1c3a40 100644 --- a/nsprpub/pr/include/md/_linux.h +++ b/nsprpub/pr/include/md/_linux.h @@ -131,7 +131,7 @@ extern PRInt32 _PR_x86_64_AtomicSet(PRInt32 *val, PRInt32 newval); #define _PR_HAVE_ATOMIC_OPS #define _MD_INIT_ATOMIC() #define _MD_ATOMIC_ADD(ptr, i) ({ \ - unsigned long __atomic_tmp, __atomic_ret; \ + PRInt32 __atomic_tmp, __atomic_ret; \ __asm__ __volatile__( \ "1: ldl_l %[ret], %[val] \n" \ " addl %[ret], %[inc], %[tmp] \n" \ @@ -149,7 +149,7 @@ extern PRInt32 _PR_x86_64_AtomicSet(PRInt32 *val, PRInt32 newval); }) #define _MD_ATOMIC_INCREMENT(ptr) _MD_ATOMIC_ADD(ptr, 1) #define _MD_ATOMIC_DECREMENT(ptr) ({ \ - unsigned long __atomic_tmp, __atomic_ret; \ + PRInt32 __atomic_tmp, __atomic_ret; \ __asm__ __volatile__( \ "1: ldl_l %[ret], %[val] \n" \ " subl %[ret], 1, %[tmp] \n" \ @@ -166,7 +166,7 @@ extern PRInt32 _PR_x86_64_AtomicSet(PRInt32 *val, PRInt32 newval); __atomic_ret; \ }) #define _MD_ATOMIC_SET(ptr, n) ({ \ - unsigned long __atomic_tmp, __atomic_ret; \ + PRInt32 __atomic_tmp, __atomic_ret; \ __asm__ __volatile__( \ "1: ldl_l %[ret], %[val] \n" \ " mov %[newval], %[tmp] \n" \