--- rpl/src/instructions_c6.c 2012/04/03 13:38:27 1.36 +++ rpl/src/instructions_c6.c 2013/04/01 15:29:35 1.48 @@ -1,7 +1,7 @@ /* ================================================================================ - RPL/2 (R) version 4.1.7 - Copyright (C) 1989-2012 Dr. BERTRAND Joël + RPL/2 (R) version 4.1.14 + Copyright (C) 1989-2013 Dr. BERTRAND Joël This file is part of RPL/2. @@ -140,8 +140,8 @@ instruction_col_fleche(struct_processus struct_objet *s_objet; struct_objet *s_objet_elementaire; - unsigned long i; - unsigned long j; + integer8 i; + integer8 j; (*s_etat_processus).erreur_execution = d_ex; @@ -206,8 +206,8 @@ instruction_col_fleche(struct_processus .nombre_lignes; if (((*((struct_matrice *) (*s_objet_elementaire).objet)).tableau = - malloc((*((struct_matrice *) (*s_objet).objet)) - .nombre_lignes * sizeof(integer8 *))) == NULL) + malloc(((size_t) (*((struct_matrice *) (*s_objet).objet)) + .nombre_lignes) * sizeof(integer8 *))) == NULL) { (*s_etat_processus).erreur_systeme = d_es_allocation_memoire; return; @@ -257,8 +257,8 @@ instruction_col_fleche(struct_processus .nombre_lignes; if (((*((struct_matrice *) (*s_objet_elementaire).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; @@ -308,8 +308,8 @@ instruction_col_fleche(struct_processus .nombre_lignes; if (((*((struct_matrice *) (*s_objet_elementaire).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; @@ -836,12 +836,13 @@ instruction_clrfuse(struct_processus *s_ ================================================================================ */ -static inline struct_objet * -creation_table(struct_liste_chainee *dimensions) +static struct_objet * +creation_table(struct_processus *s_etat_processus, + struct_liste_chainee *dimensions) { struct_objet *s_table; - unsigned long i; + integer8 i; if ((s_table = allocation(s_etat_processus, TBL)) == NULL) { @@ -849,13 +850,13 @@ creation_table(struct_liste_chainee *dim } (*((struct_tableau *) (*s_table).objet)).nombre_elements = - (unsigned long) (*((integer8 *) (*(*dimensions).donnee).objet)); + (*((integer8 *) (*(*dimensions).donnee).objet)); dimensions = (*dimensions).suivant; if (((*((struct_tableau *) (*s_table).objet)).elements = - malloc((*((struct_tableau *) (*s_table).objet)) - .nombre_elements * sizeof(struct_objet *))) == NULL) + malloc(((size_t) (*((struct_tableau *) (*s_table).objet)) + .nombre_elements) * sizeof(struct_objet *))) == NULL) { return(NULL); } @@ -878,7 +879,7 @@ creation_table(struct_liste_chainee *dim .nombre_elements; i++) { if (((*((struct_tableau *) (*s_table).objet)).elements[i] = - creation_table(dimensions)) == NULL) + creation_table(s_etat_processus, dimensions)) == NULL) { return(NULL); } @@ -964,8 +965,8 @@ instruction_crtab(struct_processus *s_et l_element_courant = (*l_element_courant).suivant; } - if ((s_objet_resultat = - creation_table((*s_objet_argument).objet)) == NULL) + if ((s_objet_resultat = creation_table(s_etat_processus, + (*s_objet_argument).objet)) == NULL) { (*s_etat_processus).erreur_systeme = d_es_allocation_memoire; return;