From 0feafaab795d44e77563963d20b7a0a9a8e834e2 Mon Sep 17 00:00:00 2001
From: Kristof Szabados <Kristof.Szabados@ericsson.com>
Date: Fri, 25 Nov 2016 15:29:27 +0100
Subject: [PATCH] make char casts explicit

Signed-off-by: Kristof Szabados <Kristof.Szabados@ericsson.com>
---
 xsdconvert/GeneralFunctions.cc | 2 +-
 xsdconvert/Mstring.cc          | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/xsdconvert/GeneralFunctions.cc b/xsdconvert/GeneralFunctions.cc
index b4c595a91..e610c74ed 100644
--- a/xsdconvert/GeneralFunctions.cc
+++ b/xsdconvert/GeneralFunctions.cc
@@ -136,7 +136,7 @@ void XSDName2TTCN3Name(const Mstring& in, QualifiedNames & used_names, modeType
 
     if (type_of_the_name == type_reference_name) {
       if (isBuiltInType(res)) {
-        res[0] = toupper(res[0]);
+        res[0] = (char)toupper(res[0]);
         res = "XSD." + res;
         return;
       }
diff --git a/xsdconvert/Mstring.cc b/xsdconvert/Mstring.cc
index 650928d22..e839b7dc7 100644
--- a/xsdconvert/Mstring.cc
+++ b/xsdconvert/Mstring.cc
@@ -103,11 +103,11 @@ char * Mstring::foundAt(const char * s) {
 }
 
 void Mstring::setCapitalized() {
-  text[0] = toupper(text[0]);
+  text[0] = (char)toupper(text[0]);
 }
 
 void Mstring::setUncapitalized() {
-  text[0] = tolower(text[0]);
+  text[0] = (char)tolower(text[0]);
 }
 
 Mstring Mstring::getPrefix(const char delimiter) const {
-- 
GitLab