summaryrefslogtreecommitdiff
path: root/examples/Shared_Malloc
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-10-22 12:27:48 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-10-22 12:27:48 +0000
commit7cfac1bce93d49772b8d6cc950c38700dfb9c50f (patch)
treea89251f836d3dbbb722927f93491229d881a36dd /examples/Shared_Malloc
parentcbddb31e43fc3ac5651e83e26f907725f104ea79 (diff)
downloadATCD-7cfac1bce93d49772b8d6cc950c38700dfb9c50f.tar.gz
(worker): convert arg to long if ACE_HAS_64BIT_LONGS
Diffstat (limited to 'examples/Shared_Malloc')
-rw-r--r--examples/Shared_Malloc/test_malloc.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/Shared_Malloc/test_malloc.cpp b/examples/Shared_Malloc/test_malloc.cpp
index e6408180ec1..db741a28785 100644
--- a/examples/Shared_Malloc/test_malloc.cpp
+++ b/examples/Shared_Malloc/test_malloc.cpp
@@ -65,7 +65,11 @@ malloc_recurse (int count)
static void *
worker (void *arg)
{
+#if defined (ACE_HAS_64BIT_LONGS)
+ malloc_recurse ((long) arg);
+#else /* ! ACE_HAS_64BIT_LONGS */
malloc_recurse ((int) arg);
+#endif /* ! ACE_HAS_64BIT_LONGS */
return 0;
}
#endif /* ACE_HAS_THREADS */