Add const to cast.
authordrepper <drepper>
Tue, 28 Nov 2000 07:09:51 +0000 (07:09 +0000)
committerdrepper <drepper>
Tue, 28 Nov 2000 07:09:51 +0000 (07:09 +0000)
iconvdata/gb18030.c
iconvdata/iso-2022-cn-ext.c

index e412f48..02ace16 100644 (file)
@@ -41825,7 +41825,7 @@ static const char __ucs_to_gb18030_tab63[][2] =
 #define LOOPFCT                        TO_LOOP
 #define BODY \
   {                                                                          \
-    uint32_t ch = *((uint32_t *) inptr);                                     \
+    uint32_t ch = *((const uint32_t *) inptr);                               \
     unsigned char buf[4];                                                    \
     const unsigned char *cp = buf;                                           \
     int len = 2;       /* This is the most often case.  */                   \
index 20f889e..d6ab2e8 100644 (file)
@@ -411,7 +411,7 @@ enum
     uint32_t ch;                                                             \
     size_t written = 0;                                                              \
                                                                              \
-    ch = *((uint32_t *) inptr);                                                      \
+    ch = *((const uint32_t *) inptr);                                        \
                                                                              \
     /* First see whether we can write the character using the currently              \
        selected character set.  */                                           \