Package: cbedic
Version: 4.0-2
Severity: normal
Tags: patch

Hi,

a rebuild of cbedic with gcc-4.4 (in Ubuntu) failed to build:
,----[ 
http://people.ubuntuwire.org/~lucas/ubuntu-nbs/32/cbedic_4.0-2build2_llucid32.buildlog
 ]-
| engine/translator.cpp: In member function 'bool 
Translator::isLatinInput(const char*, char*, bool)':
| engine/translator.cpp:300: error: invalid conversion from 'const char*' to 
'char*'
| engine/translator.cpp: In member function 'char* Translator::toLatin(const 
char*, char*, bool)':
| engine/translator.cpp:328: error: invalid conversion from 'const char*' to 
'char*'
`----

Attached is a patch to fix it.

Michael

--- cbedic-4.0.orig/src/engine/translator.cpp
+++ cbedic-4.0/src/engine/translator.cpp
@@ -291,7 +291,7 @@
 //========================================================================
 bool Translator::isLatinInput(const char *word, char *buf, const bool 
ignoreSpace) {
        int i = 0;
-       char *p;
+       const char *p;
        while (word[i] != '\0') {
                if ((ignoreSpace) && (word[i] == ' ')) {
                        buf[i] = word[i];
@@ -321,7 +321,7 @@
 char *Translator::toLatin(const char *word, char *buf, const bool 
legalLatinInput) {
        int i = 0;
        int j = 0;
-       char *p;
+       const char *p;
        char c;
        while ((c = word[i]) != '\0') {
                if (legalLatinInput) {



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to