summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/fe/fe_lookup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/TAO_IDL/fe/fe_lookup.cpp')
-rw-r--r--TAO/TAO_IDL/fe/fe_lookup.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/TAO/TAO_IDL/fe/fe_lookup.cpp b/TAO/TAO_IDL/fe/fe_lookup.cpp
index 93ffbe3019e..e155f034043 100644
--- a/TAO/TAO_IDL/fe/fe_lookup.cpp
+++ b/TAO/TAO_IDL/fe/fe_lookup.cpp
@@ -181,13 +181,10 @@ TAO_IDL_CPP_Keyword_Table::lookup (const char *str, unsigned int len)
if (key <= MAX_HASH_VALUE && key >= MIN_HASH_VALUE)
{
- if (len == static_cast<unsigned int> (ACE_OS::strlen (wordlist[key].keyword_)))
- {
- const char *s = wordlist[key].keyword_;
+ const char *s = wordlist[key].keyword_;
- if (*str == *s && !ACE_OS::strncmp (str + 1, s + 1, len - 1))
- return &wordlist[key];
- }
+ if (*str == *s && !ACE_OS::strncmp (str + 1, s + 1, len - 1))
+ return &wordlist[key];
}
}
return 0;