--- rpl/src/instructions_q1.c 2013/02/27 17:11:43 1.40 +++ rpl/src/instructions_q1.c 2013/03/20 22:24:37 1.41 @@ -53,10 +53,10 @@ instruction_qr(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; @@ -248,8 +248,8 @@ instruction_qr(struct_processus *s_etat_ (*((struct_matrice *) (*s_copie_argument).objet)) .nombre_lignes; - 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; @@ -274,8 +274,8 @@ instruction_qr(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; @@ -285,8 +285,9 @@ instruction_qr(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; @@ -542,8 +543,8 @@ instruction_qr(struct_processus *s_etat_ (*((struct_matrice *) (*s_copie_argument).objet)) .nombre_lignes; - 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; @@ -575,8 +576,8 @@ instruction_qr(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; @@ -586,8 +587,9 @@ instruction_qr(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;