• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/espeak/0002-tr_languages-cast-string_ordinal-init-values.patch
Romain NaourRomain Naour committed c789262c68b15 Jan 2017
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
From 451330d09a6a3500b40bc4f5896ba790ab46cd6c Mon Sep 17 00:00:00 2001
2
From: Romain Naour <romain.naour@gmail.com>
3
Date: Sun, 15 Jan 2017 19:37:31 +0100
4
Subject: [PATCH 2/2] tr_languages: cast string_ordinal init values
5
​
6
On some architecture, "char" is signed (x86_64, nios2...) so the
7
compiler try to convert int 0xc2 and 0xba to a signed char.
8
This is an error since gcc6 (Wnarrowing).
9
​
10
Fixes:
11
http://autobuild.buildroot.net/results/bae/baef9888b1979d18171668a675985e3f3b45fda6
12
​
13
Signed-off-by: Romain Naour <romain.naour@gmail.com>
14
---
15
 src/tr_languages.cpp | 2 +-
16
 1 file changed, 1 insertion(+), 1 deletion(-)
17
​
18
diff --git a/src/tr_languages.cpp b/src/tr_languages.cpp
19
index 5c80286..dbc6e36 100644
20
--- a/src/tr_languages.cpp
21
+++ b/src/tr_languages.cpp
22
@@ -200,7 +200,7 @@ static const unsigned short chars_ignore_zwnj_hyphen[] = {
23
    0x200d,  1, // zero width joiner
24
    0, 0 };
25
 
26
-const char string_ordinal[] = {0xc2,0xba,0};  // masculine ordinal character, UTF-8
27
+const char string_ordinal[] = {(char)0xc2,(char)0xba,0};  // masculine ordinal character, UTF-8
28
 
29
 
30
 static Translator* NewTranslator(void)
31
-- 
32
2.9.3
33
​
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.