1*19323693SBrad BishopFrom 451330d09a6a3500b40bc4f5896ba790ab46cd6c Mon Sep 17 00:00:00 2001
2*19323693SBrad BishopFrom: Romain Naour <romain.naour@gmail.com>
3*19323693SBrad BishopDate: Sun, 15 Jan 2017 19:37:31 +0100
4*19323693SBrad BishopSubject: [PATCH 2/2] tr_languages: cast string_ordinal init values
5*19323693SBrad Bishop
6*19323693SBrad BishopOn some architecture, "char" is signed (x86_64, nios2...) so the
7*19323693SBrad Bishopcompiler try to convert int 0xc2 and 0xba to a signed char.
8*19323693SBrad BishopThis is an error since gcc6 (Wnarrowing).
9*19323693SBrad Bishop
10*19323693SBrad BishopFixes:
11*19323693SBrad Bishophttp://autobuild.buildroot.net/results/bae/baef9888b1979d18171668a675985e3f3b45fda6
12*19323693SBrad Bishop
13*19323693SBrad BishopUpstream-Status: Pending [imported from BR]
14*19323693SBrad BishopSigned-off-by: Romain Naour <romain.naour@gmail.com>
15*19323693SBrad Bishop---
16*19323693SBrad Bishop src/tr_languages.cpp | 2 +-
17*19323693SBrad Bishop 1 file changed, 1 insertion(+), 1 deletion(-)
18*19323693SBrad Bishop
19*19323693SBrad Bishopdiff --git a/src/tr_languages.cpp b/src/tr_languages.cpp
20*19323693SBrad Bishopindex 5c80286..dbc6e36 100644
21*19323693SBrad Bishop--- a/src/tr_languages.cpp
22*19323693SBrad Bishop+++ b/src/tr_languages.cpp
23*19323693SBrad Bishop@@ -200,7 +200,7 @@ static const unsigned short chars_ignore_zwnj_hyphen[] = {
24*19323693SBrad Bishop 	0x200d,  1, // zero width joiner
25*19323693SBrad Bishop 	0, 0 };
26*19323693SBrad Bishop
27*19323693SBrad Bishop-const char string_ordinal[] = {0xc2,0xba,0};  // masculine ordinal character, UTF-8
28*19323693SBrad Bishop+const char string_ordinal[] = {(char)0xc2,(char)0xba,0};  // masculine ordinal character, UTF-8
29*19323693SBrad Bishop
30*19323693SBrad Bishop
31*19323693SBrad Bishop static Translator* NewTranslator(void)
32*19323693SBrad Bishop--
33*19323693SBrad Bishop2.9.3
34*19323693SBrad Bishop
35