From: Pavel Charvat Date: Thu, 24 Jan 2008 20:26:54 +0000 (+0100) Subject: Fixed a compilation warning in libcharset. X-Git-Tag: holmes-import~453 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=4041125824e4e8ccb12209ba7079dbd0b7c6bb60;p=libucw.git Fixed a compilation warning in libcharset. --- diff --git a/charset/charconv-gen.h b/charset/charconv-gen.h index 7a7f0eff..1c76b12a 100644 --- a/charset/charconv-gen.h +++ b/charset/charconv-gen.h @@ -139,7 +139,7 @@ got_code: { byte *k = string_table + code - 0x100; uns len = *k++; - if (unlikely(de - d < len)) + if (unlikely((uns)(de - d) < len)) { c->state = SEQ_WRITE; c->string_at = k;