--- rpl/src/instructions_t2.c 2013/02/27 17:11:44 1.49 +++ rpl/src/instructions_t2.c 2013/03/21 11:30:30 1.50 @@ -44,8 +44,8 @@ instruction_trn(struct_processus *s_etat logical1 argument_nom; logical1 variable_partagee; - unsigned long i; - unsigned long j; + integer8 i; + integer8 j; (*s_etat_processus).erreur_execution = d_ex; @@ -178,8 +178,8 @@ instruction_trn(struct_processus *s_etat .nombre_lignes; if (((*((struct_matrice *) (*s_objet_resultat).objet)).tableau = - malloc((*((struct_matrice *) (*s_objet_resultat).objet)) - .nombre_lignes * sizeof(integer8 *))) == NULL) + malloc(((size_t) (*((struct_matrice *) (*s_objet_resultat) + .objet)).nombre_lignes) * sizeof(integer8 *))) == NULL) { if (variable_partagee == d_vrai) { @@ -199,9 +199,9 @@ instruction_trn(struct_processus *s_etat .nombre_lignes; i++) { if ((((integer8 **) (*((struct_matrice *) (*s_objet_resultat) - .objet)).tableau)[i] = - malloc((*((struct_matrice *) (*s_objet_resultat).objet)) - .nombre_colonnes * sizeof(integer8))) == NULL) + .objet)).tableau)[i] = malloc(((size_t) + (*((struct_matrice *) (*s_objet_resultat).objet)) + .nombre_colonnes) * sizeof(integer8))) == NULL) { if (variable_partagee == d_vrai) { @@ -260,8 +260,8 @@ instruction_trn(struct_processus *s_etat .nombre_lignes; if (((*((struct_matrice *) (*s_objet_resultat).objet)).tableau = - malloc((*((struct_matrice *) (*s_objet_resultat).objet)) - .nombre_lignes * sizeof(real8 *))) == NULL) + malloc(((size_t) (*((struct_matrice *) (*s_objet_resultat) + .objet)).nombre_lignes) * sizeof(real8 *))) == NULL) { if (variable_partagee == d_vrai) { @@ -281,9 +281,9 @@ instruction_trn(struct_processus *s_etat .nombre_lignes; i++) { if ((((real8 **) (*((struct_matrice *) (*s_objet_resultat) - .objet)).tableau)[i] = - malloc((*((struct_matrice *) (*s_objet_resultat).objet)) - .nombre_colonnes * sizeof(real8))) == NULL) + .objet)).tableau)[i] = malloc(((size_t) + (*((struct_matrice *) (*s_objet_resultat).objet)) + .nombre_colonnes) * sizeof(real8))) == NULL) { if (variable_partagee == d_vrai) { @@ -342,8 +342,8 @@ instruction_trn(struct_processus *s_etat .nombre_lignes; if (((*((struct_matrice *) (*s_objet_resultat).objet)).tableau = - malloc((*((struct_matrice *) (*s_objet_resultat).objet)) - .nombre_lignes * sizeof(struct_complexe16 *))) == NULL) + malloc(((size_t) (*((struct_matrice *) (*s_objet_resultat) + .objet)).nombre_lignes) * sizeof(struct_complexe16 *))) == NULL) { if (variable_partagee == d_vrai) { @@ -364,8 +364,8 @@ instruction_trn(struct_processus *s_etat { if ((((struct_complexe16 **) (*((struct_matrice *) (*s_objet_resultat).objet)).tableau)[i] = - malloc((*((struct_matrice *) - (*s_objet_resultat).objet)).nombre_colonnes * + malloc(((size_t) (*((struct_matrice *) + (*s_objet_resultat).objet)).nombre_colonnes) * sizeof(struct_complexe16))) == NULL) { if (variable_partagee == d_vrai) @@ -482,7 +482,7 @@ instruction_tot(struct_processus *s_etat struct_objet *s_objet_resultat; struct_objet *s_objet_temporaire; - unsigned long nombre_colonnes; + integer8 nombre_colonnes; (*s_etat_processus).erreur_execution = d_ex; @@ -850,7 +850,7 @@ instruction_time(struct_processus *s_eta } (*((real8 *) (*(*l_element_courant).donnee).objet)) = - s_usage_processus_pere.ru_utime.tv_sec + + ((real8) s_usage_processus_pere.ru_utime.tv_sec) + (((real8) s_usage_processus_pere.ru_utime.tv_usec) / ((real8) 1E6)); @@ -875,7 +875,7 @@ instruction_time(struct_processus *s_eta } (*((real8 *) (*(*l_element_courant).donnee).objet)) = - s_usage_processus_pere.ru_stime.tv_sec + + ((real8) s_usage_processus_pere.ru_stime.tv_sec) + (((real8) s_usage_processus_pere.ru_stime.tv_usec) / ((real8) 1E6)); @@ -900,7 +900,7 @@ instruction_time(struct_processus *s_eta } (*((real8 *) (*(*l_element_courant).donnee).objet)) = - s_usage_processus_fils.ru_utime.tv_sec + + ((real8) s_usage_processus_fils.ru_utime.tv_sec) + (((real8) s_usage_processus_fils.ru_utime.tv_usec) / ((real8) 1E6)); @@ -925,7 +925,7 @@ instruction_time(struct_processus *s_eta } (*((real8 *) (*(*l_element_courant).donnee).objet)) = - s_usage_processus_fils.ru_stime.tv_sec + + ((real8) s_usage_processus_fils.ru_stime.tv_sec) + (((real8) s_usage_processus_fils.ru_stime.tv_usec) / ((real8) 1E6));