Crashes was reported on system with x86_64/gcc 4.2 but seems OK on i386/gcc 4.1
On gcc 4.2, a compiler warning was always given.
On gcc 4.1 the flag O2 suppressed the warning.
Signed-off-by: Quy Tonthat <qtonthat@gmail.com>
int ent = 0;
for ( i = (num_rows - 1); i >= 0; i-- ) {
for ( j = 0; j < num_rows; j++ ) {
- GET_COLUMN(dem,j)->points[i] = GINT16_FROM_BE(dem_mem[ent++]);
+ GET_COLUMN(dem,j)->points[i] = GINT16_FROM_BE(dem_mem[ent]);
+ ent++;
}
}