summaryrefslogtreecommitdiff
path: root/ace/SV_Semaphore_Simple.cpp
diff options
context:
space:
mode:
authorSteve Huston <shuston@riverace.com>2002-07-15 22:48:15 +0000
committerSteve Huston <shuston@riverace.com>2002-07-15 22:48:15 +0000
commit9a32069be9dae10f4a2fd5b62011882029af8d00 (patch)
tree74036a365982b1ae4c02180d39c211b1c4352096 /ace/SV_Semaphore_Simple.cpp
parent026d967fa99765d1d81fa905409cb9ff65b83a8d (diff)
downloadATCD-9a32069be9dae10f4a2fd5b62011882029af8d00.tar.gz
ChangeLogTag:Mon Jul 15 15:18:33 2002 Steve Huston <shuston@riverace.com>
Diffstat (limited to 'ace/SV_Semaphore_Simple.cpp')
-rw-r--r--ace/SV_Semaphore_Simple.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/ace/SV_Semaphore_Simple.cpp b/ace/SV_Semaphore_Simple.cpp
index 91740f54038..b6bd6ca7386 100644
--- a/ace/SV_Semaphore_Simple.cpp
+++ b/ace/SV_Semaphore_Simple.cpp
@@ -134,7 +134,15 @@ ACE_SV_Semaphore_Simple::name_2_key (const char *name)
// Basically "hash" the values in the <name>. This won't
// necessarily guarantee uniqueness of all keys.
// But (IMHO) CRC32 is good enough for most purposes (Carlos)
+#if defined (ACE_WIN64)
+ // The cast below is legit...
+# pragma warning(push)
+# pragma warning(disable : 4312)
+#endif /* ACE_WIN64 */
return (key_t) ACE::crc32 (name);
+#if defined (ACE_WIN64)
+# pragma warning(pop)
+#endif /* ACE_WIN64 */
}
// Open or create a ACE_SV_Semaphore. We return 1 if all is OK, else