]> mj.ucw.cz Git - libucw.git/blobdiff - charset/charconv-gen.h
tableprinter: small comment update
[libucw.git] / charset / charconv-gen.h
index 7a7f0eff8f78b9c6d110292183fc19b99a61b13f..f4988548aedc3c19d3039f3343fb776e05ec96bf 100644 (file)
@@ -16,7 +16,7 @@ do {
 
   const byte *s, *se;
   byte *d, *de;
-  uns code;
+  uint code;
   int e;
 
 #ifdef CONV_READ_STD
@@ -28,7 +28,7 @@ do {
 #endif
 
 #ifdef CONV_READ_UTF8
-  uns cc;
+  uint cc;
 #endif
 
   if (unlikely(c->state))
@@ -138,8 +138,8 @@ got_code:
       else
         {
          byte *k = string_table + code - 0x100;
-         uns len = *k++;
-         if (unlikely(de - d < len))
+         uint len = *k++;
+         if (unlikely((uint)(de - d) < len))
            {
              c->state = SEQ_WRITE;
              c->string_at = k;