# HG changeset patch # User John W. Eaton # Date 1440014946 14400 # Node ID 1a22083b59295db567987951c3ae0286c4595e96 # Parent 92ac2e05f393048a46e6ad8acff54f2dd4b05c18 use different approach to avoid unsigned/signed comparison warning * txt-eng-ft.cc (ft_render::process_character): Cast value in comparison instead of changing declaration. diff -r 92ac2e05f393 -r 1a22083b5929 libinterp/corefcn/txt-eng-ft.cc --- a/libinterp/corefcn/txt-eng-ft.cc Wed Aug 19 16:02:36 2015 -0400 +++ b/libinterp/corefcn/txt-eng-ft.cc Wed Aug 19 16:09:06 2015 -0400 @@ -560,8 +560,8 @@ if (x0 < 0) x0 = 0; - for (unsigned int r = 0; r < bitmap.rows; r++) - for (unsigned int c = 0; c < bitmap.width; c++) + for (int r = 0; static_cast (r) < bitmap.rows; r++) + for (int c = 0; static_cast (c) < bitmap.width; c++) { unsigned char pix = bitmap.buffer[r*bitmap.width+c]; if (x0+c < 0 || x0+c >= pixels.dim2 ()