--- rxvt-unicode/src/rxvtfont.C 2011/06/22 16:06:52 1.181 +++ rxvt-unicode/src/rxvtfont.C 2011/07/29 09:41:22 1.182 @@ -820,7 +820,7 @@ { font_weight *best = fonts + count - 1; - for (font_weight *w = best; w-- > fonts; ) + for (font_weight *w = fonts; w < best; w++) if (w->diff <= best->diff) best = w; @@ -926,7 +926,7 @@ width = 1; - for (uint16_t *t = extent_test_chars + ecb_array_length (extent_test_chars); t-- > extent_test_chars; ) + for (uint16_t *t = extent_test_chars; t < extent_test_chars + ecb_array_length (extent_test_chars); t++) { if (FROM_UNICODE (cs, *t) == NOCHAR) continue; @@ -1248,7 +1248,7 @@ int glheight = height; - for (uint16_t *t = extent_test_chars + ecb_array_length (extent_test_chars); t-- > extent_test_chars; ) + for (uint16_t *t = extent_test_chars; t < extent_test_chars + ecb_array_length (extent_test_chars); t++) { FcChar16 ch = *t;