[opengtl-commits] [646] fix gtlFreeAllArray

[ Thread Index | Date Index | More lists.tuxfamily.org/opengtl-commits Archives ]


Revision: 646
Author:   cyrille
Date:     2009-03-17 15:58:16 +0100 (Tue, 17 Mar 2009)

Log Message:
-----------
fix gtlFreeAllArray

Modified Paths:
--------------
    trunk/OpenGTL/OpenGTL/GTLCore/wrappers/ArrayWrap.h


Modified: trunk/OpenGTL/OpenGTL/GTLCore/wrappers/ArrayWrap.h
===================================================================
--- trunk/OpenGTL/OpenGTL/GTLCore/wrappers/ArrayWrap.h	2009-03-17 14:57:39 UTC (rev 645)
+++ trunk/OpenGTL/OpenGTL/GTLCore/wrappers/ArrayWrap.h	2009-03-17 14:58:16 UTC (rev 646)
@@ -53,7 +53,7 @@
 template< typename _T_>
 inline void gtlFreeAllArray( ArrayWrap* aw )
 {
-  _T_ elts = reinterpret_cast<_T_>(aw->data);
+  _T_* elts = reinterpret_cast<_T_*>(aw->data);
   for( int i = 0; i < aw->size; ++i)
   {
     gtlFree( elts[i] );


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/