--- rpl/src/instructions_c3.c 2013/03/16 11:31:41 1.47 +++ rpl/src/instructions_c3.c 2013/03/20 17:11:44 1.48 @@ -143,8 +143,8 @@ instruction_cnrm(struct_processus *s_eta struct_objet *s_objet_argument; struct_objet *s_objet_resultat; - unsigned long i; - unsigned long j; + integer8 i; + integer8 j; void *accumulateur; @@ -267,8 +267,8 @@ instruction_cnrm(struct_processus *s_eta return; } - if ((accumulateur = malloc((*((struct_vecteur *) - (*s_objet_argument).objet)).taille * sizeof(real8))) == NULL) + if ((accumulateur = malloc(((size_t) (*((struct_vecteur *) + (*s_objet_argument).objet)).taille) * sizeof(real8))) == NULL) { (*s_etat_processus).erreur_systeme = d_es_allocation_memoire; return; @@ -303,8 +303,8 @@ instruction_cnrm(struct_processus *s_eta return; } - if ((accumulateur = malloc((*((struct_vecteur *) - (*s_objet_argument).objet)).taille * sizeof(real8))) == NULL) + if ((accumulateur = malloc(((size_t) (*((struct_vecteur *) + (*s_objet_argument).objet)).taille) * sizeof(real8))) == NULL) { (*s_etat_processus).erreur_systeme = d_es_allocation_memoire; return; @@ -433,8 +433,8 @@ instruction_cnrm(struct_processus *s_eta return; } - if ((accumulateur = malloc((*((struct_matrice *) - (*s_objet_argument).objet)).nombre_lignes * sizeof(real8))) + if ((accumulateur = malloc(((size_t) (*((struct_matrice *) + (*s_objet_argument).objet)).nombre_lignes) * sizeof(real8))) == NULL) { (*s_etat_processus).erreur_systeme = d_es_allocation_memoire; @@ -483,8 +483,8 @@ instruction_cnrm(struct_processus *s_eta return; } - if ((accumulateur = malloc((*((struct_matrice *) - (*s_objet_argument).objet)).nombre_lignes * sizeof(real8))) + if ((accumulateur = malloc(((size_t) (*((struct_matrice *) + (*s_objet_argument).objet)).nombre_lignes) * sizeof(real8))) == NULL) { (*s_etat_processus).erreur_systeme = d_es_allocation_memoire; @@ -531,8 +531,8 @@ instruction_cnrm(struct_processus *s_eta return; } - if ((accumulateur = malloc((*((struct_matrice *) - (*s_objet_argument).objet)).nombre_lignes * sizeof(real8))) + if ((accumulateur = malloc(((size_t) (*((struct_matrice *) + (*s_objet_argument).objet)).nombre_lignes) * sizeof(real8))) == NULL) { (*s_etat_processus).erreur_systeme = d_es_allocation_memoire; @@ -723,7 +723,8 @@ instruction_chr(struct_processus *s_etat } ((unsigned char *) (*s_objet_resultat).objet)[0] = - (*((integer8 *) (*s_objet_argument).objet)); + (unsigned char) (*((integer8 *) + (*s_objet_argument).objet)); ((unsigned char *) (*s_objet_resultat).objet)[1] = d_code_fin_chaine; }