Mercurial > octave
changeset 20451:9267c95dbd71
avoid signed/unsigned comparison warning
* txt-eng-ft.cc (ft_render::process_character): Declare loop counters
as unsigned ints.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 19 Aug 2015 15:57:23 -0400 |
parents | b3f56ed8d1f9 |
children | 962724eae091 |
files | libinterp/corefcn/txt-eng-ft.cc |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/txt-eng-ft.cc Tue Aug 18 11:35:23 2015 -0700 +++ b/libinterp/corefcn/txt-eng-ft.cc Wed Aug 19 15:57:23 2015 -0400 @@ -560,8 +560,8 @@ if (x0 < 0) x0 = 0; - for (int r = 0; r < bitmap.rows; r++) - for (int c = 0; c < bitmap.width; c++) + for (unsigned int r = 0; r < bitmap.rows; r++) + for (unsigned int c = 0; c < bitmap.width; c++) { unsigned char pix = bitmap.buffer[r*bitmap.width+c]; if (x0+c < 0 || x0+c >= pixels.dim2 ()