??? 08/09/07 11:54 Read: times |
#142976 - How to post code: Responding to: ???'s previous message |
Use the <pre> and </pre> tags:
for(c=0;(c<calib_table_def[calib_table].curves_count)&&(c<CALIB_MAX_CURVES_COUNT); c++) { for(p=1;(p<calib_points_count[calib_table].curve[c]-1)&&(p<CALIB_MAX_CURVES_POINTS_COUNT-1);p++) { if (calib_x<calib_tables[calib_table].curve[c].point[p].x ) break; ... } } ... for(c=0;c<calib_table_def[CALIB_TABLE_2].curves_count;c++) { if(c >= CALIB_MAX_CURVES_COUNT) break; for(p=1;p<calib_points_count[CALIB_TABLE_2].curve[c]-1;p++) { if(p >= CALIB_MAX_CURVES_POINTS_COUNT-1) break; if(calib_x < calib_tables[CALIB_TABLE_2].curve[c].point[p].x) break; } ... } ... There does not seem to be anything wrong with the code itself. Maybe looking at the generated assembly for the two cases would reveal what is going wrong. |