diff options
| author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-12-17 04:11:55 +0000 |
|---|---|---|
| committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-12-17 04:11:55 +0000 |
| commit | f2bee29731499b0784c4041adcd342bb6082d443 (patch) | |
| tree | 4721e7e3498e61c374e5cfe05a3111c53b30d7f0 /examples/Shared_Malloc/test_malloc.cpp | |
| parent | be4b14c01ac3a84e28a0d5778a2436b56a9cfaf8 (diff) | |
| download | ATCD-f2bee29731499b0784c4041adcd342bb6082d443.tar.gz | |
replace ACE_HAS_64BIT_LONGS preprocessor logic with a cast through a long to an int.
Diffstat (limited to 'examples/Shared_Malloc/test_malloc.cpp')
| -rw-r--r-- | examples/Shared_Malloc/test_malloc.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/examples/Shared_Malloc/test_malloc.cpp b/examples/Shared_Malloc/test_malloc.cpp index 3860431afc9..845f168ad5e 100644 --- a/examples/Shared_Malloc/test_malloc.cpp +++ b/examples/Shared_Malloc/test_malloc.cpp @@ -70,11 +70,10 @@ 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 */ + // Cast the arg to a long, first, because a pointer is the same + // size as a long on all current ACE platforms. + malloc_recurse ((int) (long) arg); + return 0; } #endif /* ACE_HAS_THREADS */ |
