--- rpl/src/instructions_l5.c 2013/02/27 17:11:42 1.43 +++ rpl/src/instructions_l5.c 2013/03/20 17:11:45 1.44 @@ -265,7 +265,7 @@ instruction_label(struct_processus *s_et struct_objet *s_objet_argument; - unsigned long nombre_labels; + integer8 nombre_labels; (*s_etat_processus).erreur_execution = d_ex; @@ -772,10 +772,10 @@ instruction_lq(struct_processus *s_etat_ struct_objet *s_objet_argument; struct_objet *s_objet_resultat; - unsigned long i; - unsigned long j; - unsigned long k; - unsigned long nombre_reflecteurs_elementaires; + integer8 i; + integer8 j; + integer8 k; + integer8 nombre_reflecteurs_elementaires; void *tau; @@ -986,8 +986,8 @@ instruction_lq(struct_processus *s_etat_ (*((struct_matrice *) (*s_copie_argument).objet)) .nombre_colonnes; - if ((vecteur_reel = malloc((*((struct_matrice *) (*s_objet).objet)) - .nombre_lignes * sizeof(real8))) == NULL) + if ((vecteur_reel = malloc(((size_t) (*((struct_matrice *) + (*s_objet).objet)).nombre_lignes) * sizeof(real8))) == NULL) { (*s_etat_processus).erreur_systeme = d_es_allocation_memoire; return; @@ -1012,8 +1012,8 @@ instruction_lq(struct_processus *s_etat_ } if (((*((struct_matrice *) (*s_objet).objet)).tableau = - malloc((*((struct_matrice *) (*s_objet).objet)) - .nombre_lignes * sizeof(real8 *))) == NULL) + malloc(((size_t) (*((struct_matrice *) (*s_objet).objet)) + .nombre_lignes) * sizeof(real8 *))) == NULL) { (*s_etat_processus).erreur_systeme = d_es_allocation_memoire; return; @@ -1023,8 +1023,9 @@ instruction_lq(struct_processus *s_etat_ .nombre_lignes; j++) { if ((((real8 **) (*((struct_matrice *) (*s_objet).objet)) - .tableau)[j] = malloc((*((struct_matrice *) (*s_objet) - .objet)).nombre_lignes * sizeof(real8))) == NULL) + .tableau)[j] = malloc(((size_t) (*((struct_matrice *) + (*s_objet).objet)).nombre_lignes) * sizeof(real8))) + == NULL) { (*s_etat_processus).erreur_systeme = d_es_allocation_memoire; @@ -1304,8 +1305,8 @@ instruction_lq(struct_processus *s_etat_ (*((struct_matrice *) (*s_copie_argument).objet)) .nombre_colonnes; - if ((vecteur_complexe = malloc((*((struct_matrice *) - (*s_objet).objet)).nombre_lignes * sizeof(complex16))) + if ((vecteur_complexe = malloc(((size_t) (*((struct_matrice *) + (*s_objet).objet)).nombre_lignes) * sizeof(complex16))) == NULL) { (*s_etat_processus).erreur_systeme = d_es_allocation_memoire; @@ -1339,8 +1340,8 @@ instruction_lq(struct_processus *s_etat_ } if (((*((struct_matrice *) (*s_objet).objet)).tableau = - malloc((*((struct_matrice *) (*s_objet).objet)) - .nombre_lignes * sizeof(complex16 *))) == NULL) + malloc(((size_t) (*((struct_matrice *) (*s_objet).objet)) + .nombre_lignes) * sizeof(complex16 *))) == NULL) { (*s_etat_processus).erreur_systeme = d_es_allocation_memoire; return; @@ -1350,8 +1351,9 @@ instruction_lq(struct_processus *s_etat_ .nombre_lignes; j++) { if ((((complex16 **) (*((struct_matrice *) (*s_objet).objet)) - .tableau)[j] = malloc((*((struct_matrice *) (*s_objet) - .objet)).nombre_lignes * sizeof(complex16))) == NULL) + .tableau)[j] = malloc(((size_t) (*((struct_matrice *) + (*s_objet).objet)).nombre_lignes) * sizeof(complex16))) + == NULL) { (*s_etat_processus).erreur_systeme = d_es_allocation_memoire;