X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=ttf2png.c;fp=ttf2png.c;h=d3ea069db4342a53f02ba58215f6df5ca08a9469;hb=7d79105a2dfe319dbdb7983a8f251d1ca16ef8b8;hp=27838112917fe5b3d854e7e03b6a80efccf40a3c;hpb=e80f88a25e4c1e3f91be435636be4267ba6ab9ec;p=ttf2png.git diff --git a/ttf2png.c b/ttf2png.c index 2783811..d3ea069 100644 --- a/ttf2png.c +++ b/ttf2png.c @@ -348,7 +348,7 @@ void convert_code_point_range(char opt, Range *range) { range->first = value; value = str_to_code_point(ptr+1, &ptr); - if(value>=0 && !*ptr) + if(value>=(int)range->first && !*ptr) { range->last = value; return;