pp.c: Silence compiler warning
authorKarl Williamson <public@khwilliamson.com>
Thu, 30 Jan 2014 18:51:56 +0000 (11:51 -0700)
committerKarl Williamson <public@khwilliamson.com>
Fri, 31 Jan 2014 06:31:06 +0000 (23:31 -0700)
The only time the result of toFOLD_LC() can be larger than a byte is
in a UTF-8 locale, which has already been ruled out for this section of
code.

pp.c

diff --git a/pp.c b/pp.c
index b882fb3..a5ce2a8 100644 (file)
--- a/pp.c
+++ b/pp.c
@@ -4192,7 +4192,7 @@ PP(pp_fc)
                 goto do_uni_folding;
             }
             for (; s < send; d++, s++)
-                *d = toFOLD_LC(*s);
+                *d = (U8) toFOLD_LC(*s);
         }
         else if ( !IN_UNI_8_BIT ) { /* Under nothing, or bytes */
             for (; s < send; d++, s++)