From e36aab7783578287c1d0453a886c2d0bedfff92a Mon Sep 17 00:00:00 2001 From: Stas Degteff Date: Thu, 3 Nov 2005 11:58:16 +0000 Subject: [PATCH] Fix GCC warnings --- golded3/gccfgg5.cpp | 4 ++-- golded3/geedit.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/golded3/gccfgg5.cpp b/golded3/gccfgg5.cpp index 5b612b4..361e906 100644 --- a/golded3/gccfgg5.cpp +++ b/golded3/gccfgg5.cpp @@ -315,9 +315,9 @@ void CfgLatintolocal() char *ptr = val, chr; for (chr = 'A'; chr <= 'Z'; chr++, ptr++) - CFG->latintolocal[chr] = *ptr; + CFG->latintolocal[int(chr)] = *ptr; for (chr = 'a'; chr <= 'z'; chr++, ptr++) - CFG->latintolocal[chr] = *ptr; + CFG->latintolocal[int(chr)] = *ptr; } // ------------------------------------------------------------------ diff --git a/golded3/geedit.cpp b/golded3/geedit.cpp index 448601d..972c244 100644 --- a/golded3/geedit.cpp +++ b/golded3/geedit.cpp @@ -2048,7 +2048,7 @@ void IEclass::ToggleCaseChar(gkey key, Line *ln, int n) { int oldchar = *it; - int newchar; + int newchar = 0; switch (key) {