--- rpl/src/indicateurs.c 2013/02/27 17:11:40 1.40 +++ rpl/src/indicateurs.c 2013/03/20 17:11:44 1.41 @@ -51,7 +51,7 @@ sf(struct_processus *s_etat_processus, u indice_bloc = indice_drapeau / taille_bloc; indice_bit = indice_drapeau % taille_bloc; - masque = ((t_8_bits) 1) << (taille_bloc - indice_bit - 1); + masque = (t_8_bits) (((t_8_bits) 1) << (taille_bloc - indice_bit - 1)); (*s_etat_processus).drapeaux_etat[indice_bloc] |= masque; } @@ -85,7 +85,7 @@ cf(struct_processus *s_etat_processus, u indice_bloc = indice_drapeau / taille_bloc; indice_bit = indice_drapeau % taille_bloc; - masque = ~(((t_8_bits) 1) << (taille_bloc - indice_bit - 1)); + masque = (t_8_bits) (~(((t_8_bits) 1) << (taille_bloc - indice_bit - 1))); (*s_etat_processus).drapeaux_etat[indice_bloc] &= masque; } @@ -119,7 +119,7 @@ test_cfsf(struct_processus *s_etat_proce indice_bloc = indice_drapeau / taille_bloc; indice_bit = indice_drapeau % taille_bloc; - masque = ((t_8_bits) 1) << (taille_bloc - indice_bit - 1); + masque = (t_8_bits) (((t_8_bits) 1) << (taille_bloc - indice_bit - 1)); return((((*s_etat_processus).drapeaux_etat[indice_bloc] & masque) != 0) ? d_vrai : d_faux);