aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortradke <tradke@21a6bef8-4479-4f54-8f8d-0db94a2919ef>2001-05-19 01:35:21 +0000
committertradke <tradke@21a6bef8-4479-4f54-8f8d-0db94a2919ef>2001-05-19 01:35:21 +0000
commitad345cd15767011ca90b9d397992ee68fb66d1d7 (patch)
tree1e703e611b48d0d6d8b81a781cd0067ff0354cf3
parentc4a0a277c2f898102f94db3b3b1361c88ed08e55 (diff)
gcc warnings fixed.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusExternal/FlexIO/trunk@18 21a6bef8-4479-4f54-8f8d-0db94a2919ef
-rw-r--r--src/FlexArrayTmpl.H12
1 files 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(){