summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/include/idl_narrow.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/TAO_IDL/include/idl_narrow.h')
-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);\