From efd02fbf00c761e8a430b86e0de6dcb76cb82c29 Mon Sep 17 00:00:00 2001 From: Yves Rizoud Date: Wed, 17 Dec 2008 19:12:58 +0000 Subject: [PATCH] Fix compilation warnings of r394 git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@397 416bcca6-2ee7-4201-b75f-2eb2f807beb1 --- aide.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/aide.c b/aide.c index 88b05407..3e45296b 100644 --- a/aide.c +++ b/aide.c @@ -91,7 +91,7 @@ void Afficher_aide(void) short Largeur; // Largeur physique d'une ligne de texte char TypeLigne; // N: Normale, T: Titre, S: Sous-titre // -: Ligne inférieur de sous-titre - const unsigned char * Ligne; + const char * Ligne; char Buffer[44]; // Buffer texte utilisé pour formater les noms de // raccourcis clavier short Position_lien=0; // Position du premier caractère "variable" @@ -123,7 +123,7 @@ void Afficher_aide(void) else if (TypeLigne == 'K') { const char *Lien; - Position_lien = (unsigned char *)strstr(Ligne,"%s") - Ligne; + Position_lien = strstr(Ligne,"%s") - Ligne; Lien=Valeur_Raccourci_Clavier(Table_d_aide[Section_d_aide_en_cours].Table_aide[Ligne_de_depart + Indice_de_ligne].valeur); Taille_lien=strlen(Lien); sprintf(Buffer, Ligne, Lien); @@ -148,13 +148,13 @@ void Afficher_aide(void) // qui va a gauche, sinon celui qui va a droite. if (TypeLigne=='T') - Curseur=Caracteres_Aide_Titre_haut[Ligne[Indice_de_caractere/2]-' '] + (Indice_de_caractere & 1); + Curseur=Caracteres_Aide_Titre_haut[(unsigned char)(Ligne[Indice_de_caractere/2])-' '] + (Indice_de_caractere & 1); else if (TypeLigne=='-') - Curseur=Caracteres_Aide_Titre_bas[Ligne[Indice_de_caractere/2]-' '] + (Indice_de_caractere & 1); + Curseur=Caracteres_Aide_Titre_bas[(unsigned char)(Ligne[Indice_de_caractere/2])-' '] + (Indice_de_caractere & 1); else if (TypeLigne=='S') - Curseur=Caracteres_Aide_S[Ligne[Indice_de_caractere]-' ']; + Curseur=Caracteres_Aide_S[(unsigned char)(Ligne[Indice_de_caractere])-' ']; else if (TypeLigne=='N' || TypeLigne=='K') - Curseur=Caracteres_Aide_N[Ligne[Indice_de_caractere]-' ']; + Curseur=Caracteres_Aide_N[(unsigned char)(Ligne[Indice_de_caractere])-' ']; else Curseur=1; // Un garde-fou en cas de probleme