From ad345cd15767011ca90b9d397992ee68fb66d1d7 Mon Sep 17 00:00:00 2001 From: tradke Date: Sat, 19 May 2001 01:35:21 +0000 Subject: gcc warnings fixed. git-svn-id: http://svn.cactuscode.org/arrangements/CactusExternal/FlexIO/trunk@18 21a6bef8-4479-4f54-8f8d-0db94a2919ef --- src/FlexArrayTmpl.H | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/FlexArrayTmpl.H b/src/FlexArrayTmpl.H index 627dac8..e365d61 100644 --- a/src/FlexArrayTmpl.H +++ b/src/FlexArrayTmpl.H @@ -51,16 +51,16 @@ public: int append(T value); int append(T *values,int nvals); #ifdef FLEXARRAYDEBUG - T &operator[](int index){ - if(index>=size || index<0) { // range check + T &operator[](int idx){ + if(idx>=size || idx<0) { // range check printf("FlexArray:: Bad index. Arraysize=%u Index=%u\n", - size,index); - index=0; + size,idx); + idx=0; } - return (data[index]); + return (data[idx]); } #else - inline T &operator[](int index){ return (data[index]); } + inline T &operator[](int idx){ return (data[idx]); } #endif // purge? which forces array delete inline void purge(){ -- cgit v1.2.3