You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@etch.apache.org by ve...@apache.org on 2012/08/02 17:37:22 UTC

svn commit: r1368549 - /incubator/etch/trunk/binding-cpp/runtime/include/common/EtchNativeArray.h

Author: veithm
Date: Thu Aug  2 15:37:22 2012
New Revision: 1368549

URL: http://svn.apache.org/viewvc?rev=1368549&view=rev
Log:
ETCH-181 EtchNativeArray fix

Valgrind error has been fixed

Change-Id: I3821be665b3b88c1b0227aff742d257c68df7bee

Modified:
    incubator/etch/trunk/binding-cpp/runtime/include/common/EtchNativeArray.h

Modified: incubator/etch/trunk/binding-cpp/runtime/include/common/EtchNativeArray.h
URL: http://svn.apache.org/viewvc/incubator/etch/trunk/binding-cpp/runtime/include/common/EtchNativeArray.h?rev=1368549&r1=1368548&r2=1368549&view=diff
==============================================================================
--- incubator/etch/trunk/binding-cpp/runtime/include/common/EtchNativeArray.h (original)
+++ incubator/etch/trunk/binding-cpp/runtime/include/common/EtchNativeArray.h Thu Aug  2 15:37:22 2012
@@ -231,7 +231,7 @@ public:
      *@see EtchArrayBase
      */
     status_t get(Pos pos, capu::int32_t index, T *result) {
-      if(pos.size < index || pos.pos[index] > EtchArrayBase<T>::mLength || pos.size-1 != index) {
+      if(pos.size < index || pos.size-1 != index || pos.pos[index] > EtchArrayBase<T>::mLength) {
         return ETCH_ERANGE;
       }
       if(result != NULL) {