Author: veithm
Date: Fri Apr 4 09:55:53 2014
New Revision: 1584590
URL: http://svn.apache.org/r1584590
Log:
Removing loss of precision warning in EtchHashTable
The number of entries (count()) is dependend on the platform (32, 64 bit).
The getter is changed accordingly.
Change-Id: I1c1047a28eb822a171f8841026823cb45aa7ebb8
Modified:
etch/trunk/binding-cpp/runtime/include/common/EtchHashTable.h
Modified: etch/trunk/binding-cpp/runtime/include/common/EtchHashTable.h
URL:
http://svn.apache.org/viewvc/etch/trunk/binding-cpp/runtime/include/common/EtchHashTable.h?rev=1584590&r1=1584589&r2=1584590&view=diff
==============================================================================
--- etch/trunk/binding-cpp/runtime/include/common/EtchHashTable.h (original)
+++ etch/trunk/binding-cpp/runtime/include/common/EtchHashTable.h Fri Apr 4
09:55:53 2014
@@ -168,7 +168,7 @@ public:
* Returns count of the EtchHashTable.
* @return number of element in hash table
*/
- inline capu::uint32_t count();
+ inline capu::uint_t count();
/**
* Clear all key and values of the EtchHashTable.
@@ -241,7 +241,7 @@ inline status_t EtchHashTable<Key, T, C,
}
template <class Key, class T, class C, class H>
-inline capu::uint32_t EtchHashTable<Key, T, C, H>::count() {
+inline capu::uint_t EtchHashTable<Key, T, C, H>::count() {
return mHashTable.count();
}