--- rpl/src/instructions_q1.c 2010/03/04 10:17:52 1.4 +++ rpl/src/instructions_q1.c 2015/02/19 11:01:25 1.51 @@ -1,7 +1,7 @@ /* ================================================================================ - RPL/2 (R) version 4.0.12 - Copyright (C) 1989-2010 Dr. BERTRAND Joël + RPL/2 (R) version 4.1.21 + Copyright (C) 1989-2015 Dr. BERTRAND Joël This file is part of RPL/2. @@ -20,7 +20,7 @@ */ -#include "rpl.conv.h" +#include "rpl-conv.h" /* @@ -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;