Mercurial > hg > octave-lyh
comparison liboctave/Array3.h @ 2428:6979248bf0d3
[project @ 1996-10-25 06:26:19 by jwe]
author | jwe |
---|---|
date | Fri, 25 Oct 1996 06:27:38 +0000 |
parents | 2fbf9bb1cd7a |
children | d95b5eb82e22 |
comparison
equal
deleted
inserted
replaced
2427:2f50b24ce84f | 2428:6979248bf0d3 |
---|---|
130 T checkelem (int i, int j, int k) const | 130 T checkelem (int i, int j, int k) const |
131 { | 131 { |
132 if (i < 0 || j < 0 || k < 0 || i >= d1 || j >= d2 || k >= d3) | 132 if (i < 0 || j < 0 || k < 0 || i >= d1 || j >= d2 || k >= d3) |
133 { | 133 { |
134 (*current_liboctave_error_handler) ("range error"); | 134 (*current_liboctave_error_handler) ("range error"); |
135 T foo; | 135 T foo GCC_ATTRIBUTE_UNUSED; |
136 static T *bar = &foo; | |
137 return foo; | 136 return foo; |
138 } | 137 } |
139 return Array2<T>::elem (i, d1*k+j); | 138 return Array2<T>::elem (i, d1*k+j); |
140 } | 139 } |
141 | 140 |