summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/include
diff options
context:
space:
mode:
authorparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-09-16 23:30:52 +0000
committerparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-09-16 23:30:52 +0000
commit76bd5ebad2c24056532d15f33e1354bc29a5aa8f (patch)
treec1c0b20d70b7650d76f97805cda9686133f98165 /TAO/TAO_IDL/include
parentc54a1572f48b254ccbeb8ad7300ca90d2d4c63b2 (diff)
downloadATCD-76bd5ebad2c24056532d15f33e1354bc29a5aa8f.tar.gz
Added a temporary in the IMPL_NARROW_METHODS macros, the better
for KCC.
Diffstat (limited to 'TAO/TAO_IDL/include')
-rw-r--r--TAO/TAO_IDL/include/idl_narrow.h18
1 files changed, 12 insertions, 6 deletions
diff --git a/TAO/TAO_IDL/include/idl_narrow.h b/TAO/TAO_IDL/include/idl_narrow.h
index f861a851277..d2611da1a1e 100644
--- a/TAO/TAO_IDL/include/idl_narrow.h
+++ b/TAO/TAO_IDL/include/idl_narrow.h
@@ -111,7 +111,8 @@ TYPE::type_id()\
void * \
TYPE::narrow(long type_const) {\
void *rval = NULL; \
- if (type_const == (long)&TYPE::type_id) \
+ long temp = (long) &TYPE::type_id; \
+ if (type_const == temp) \
rval = this; \
return rval; \
}
@@ -130,7 +131,8 @@ TYPE::type_id() \
void * \
TYPE::narrow(long type_const) {\
void *rval = NULL; \
- if (type_const == (long)&TYPE::type_id) \
+ long temp = (long) &TYPE::type_id; \
+ if (type_const == temp) \
rval = this; \
if (rval == NULL) \
rval = PARENT::narrow(type_const);\
@@ -151,7 +153,8 @@ TYPE::type_id() \
void * \
TYPE::narrow(long type_const) { \
void *rval = NULL; \
- if (type_const == (long)&TYPE::type_id) \
+ long temp = (long) &TYPE::type_id; \
+ if (type_const == temp) \
rval = this; \
if (rval == NULL) \
rval = PARENT1::narrow(type_const);\
@@ -174,7 +177,8 @@ TYPE::type_id() \
void * \
TYPE::narrow(long type_const) {\
void *rval = NULL; \
- if (type_const == (long)&TYPE::type_id) \
+ long temp = (long) &TYPE::type_id; \
+ if (type_const == temp) \
rval = this; \
if (rval == NULL) \
rval = PARENT1::narrow(type_const);\
@@ -199,7 +203,8 @@ TYPE::type_id() \
void * \
TYPE::narrow(long type_const) {\
void *rval = NULL; \
- if (type_const == (long)&TYPE::type_id) \
+ long temp = (long) &TYPE::type_id; \
+ if (type_const == temp) \
rval = this; \
if (rval == NULL) \
rval = PARENT1::narrow(type_const);\
@@ -226,7 +231,8 @@ TYPE::type_id() \
void * \
TYPE::narrow(long type_const) {\
void *rval = NULL; \
- if (type_const == (long)&TYPE::type_id) \
+ long temp = (long) &TYPE::type_id; \
+ if (type_const == temp) \
rval = this; \
if (rval == NULL) \
rval = PARENT1::narrow(type_const);\