(ucs4_to_cns11643): Define needed as size_t.
authordrepper <drepper>
Tue, 28 Nov 2000 01:00:38 +0000 (01:00 +0000)
committerdrepper <drepper>
Tue, 28 Nov 2000 01:00:38 +0000 (01:00 +0000)
iconvdata/cns11643.h

index 8c73c06..176cb1f 100644 (file)
@@ -107,7 +107,7 @@ ucs4_to_cns11643 (uint32_t wch, char *s, size_t avail)
   unsigned int ch = (unsigned int) wch;
   char buf[2];
   const char *cp = buf;
-  int needed = 2;
+  size_t needed = 2;
 
   switch (ch)
     {