Code cleanups
on behalf of Lebedev, see issue 1279
This commit is contained in:
@@ -262,7 +262,7 @@ public:
|
||||
|
||||
array2D<T> & operator[](int index) {
|
||||
if (static_cast<size_t>(index) >= num) {
|
||||
printf("index %0u is out of range[0..%0u]", index, num - 1);
|
||||
printf("index %0u is out of range[0..%0lu]", index, num - 1);
|
||||
raise( SIGSEGV);
|
||||
}
|
||||
return list[index];
|
||||
|
Reference in New Issue
Block a user