From 54cf3a72ba9b942fbe71fe4b3443c51ac0e4af01 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Tue, 14 Jun 2011 11:25:37 +0000 Subject: [PATCH] Changed sReplyPortInUse type from long to int32, so it be used with atomic_add() also on 64 bit architectures. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42174 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/os/app/Message.h | 2 +- src/kits/app/Message.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/headers/os/app/Message.h b/headers/os/app/Message.h index d406a45814..2920a1a3a2 100644 --- a/headers/os/app/Message.h +++ b/headers/os/app/Message.h @@ -376,7 +376,7 @@ class BMessage { enum { sNumReplyPorts = 3 }; static port_id sReplyPorts[sNumReplyPorts]; - static long sReplyPortInUse[sNumReplyPorts]; + static int32 sReplyPortInUse[sNumReplyPorts]; static int32 sGetCachedReplyPort(); static BBlockCache* sMsgCache; diff --git a/src/kits/app/Message.cpp b/src/kits/app/Message.cpp index 8cc5c4049a..1e8c5e46f9 100644 --- a/src/kits/app/Message.cpp +++ b/src/kits/app/Message.cpp @@ -78,7 +78,7 @@ extern "C" { BBlockCache *BMessage::sMsgCache = NULL; port_id BMessage::sReplyPorts[sNumReplyPorts]; -long BMessage::sReplyPortInUse[sNumReplyPorts]; +int32 BMessage::sReplyPortInUse[sNumReplyPorts]; template