--- rpl/src/instructions_s10.c 2013/02/27 17:11:44 1.69 +++ rpl/src/instructions_s10.c 2013/04/01 15:29:37 1.73 @@ -1,6 +1,6 @@ /* ================================================================================ - RPL/2 (R) version 4.1.13 + RPL/2 (R) version 4.1.14 Copyright (C) 1989-2013 Dr. BERTRAND Joël This file is part of RPL/2. @@ -1276,7 +1276,8 @@ instruction_smphrtrydecr(struct_processu return; } - horodatage.tv_sec += (*((integer8 *) (*s_objet_argument_1).objet)); + horodatage.tv_sec += (time_t) (*((integer8 *) + (*s_objet_argument_1).objet)); } else { @@ -1290,7 +1291,7 @@ instruction_smphrtrydecr(struct_processu } partie_entiere = floor((*((real8 *) (*s_objet_argument_1).objet))); - horodatage.tv_sec += partie_entiere; + horodatage.tv_sec += (time_t) partie_entiere; horodatage.tv_usec += ((suseconds_t) ((*((real8 *) (*s_objet_argument_1).objet)) - partie_entiere)) * 1000000; @@ -1647,8 +1648,8 @@ instruction_svd(struct_processus *s_etat struct_vecteur s_vecteur; - unsigned long i; - unsigned long j; + integer8 i; + integer8 j; (*s_etat_processus).erreur_execution = d_ex; @@ -1740,8 +1741,8 @@ instruction_svd(struct_processus *s_etat .nombre_lignes; if (((*((struct_matrice *) (*s_objet_resultat_2).objet)).tableau = - malloc((*((struct_matrice *) (*s_objet_resultat_2).objet)) - .nombre_lignes * sizeof(real8 *))) == NULL) + malloc(((size_t) (*((struct_matrice *) (*s_objet_resultat_2) + .objet)).nombre_lignes) * sizeof(real8 *))) == NULL) { (*s_etat_processus).erreur_systeme = d_es_allocation_memoire; return; @@ -1751,9 +1752,9 @@ instruction_svd(struct_processus *s_etat .nombre_lignes; i++) { if ((((real8 **) (*((struct_matrice *) (*s_objet_resultat_2) - .objet)).tableau)[i] = malloc((*((struct_matrice *) - (*s_objet_resultat_2).objet)).nombre_colonnes * - sizeof(real8 *))) == NULL) + .objet)).tableau)[i] = malloc(((size_t) + (*((struct_matrice *) (*s_objet_resultat_2).objet)) + .nombre_colonnes) * sizeof(real8 *))) == NULL) { (*s_etat_processus).erreur_systeme = d_es_allocation_memoire; return; @@ -1840,8 +1841,8 @@ instruction_svd(struct_processus *s_etat .nombre_lignes; if (((*((struct_matrice *) (*s_objet_resultat_2).objet)).tableau = - malloc((*((struct_matrice *) (*s_objet_resultat_2).objet)) - .nombre_lignes * sizeof(real8 *))) == NULL) + malloc(((size_t) (*((struct_matrice *) (*s_objet_resultat_2) + .objet)).nombre_lignes) * sizeof(real8 *))) == NULL) { (*s_etat_processus).erreur_systeme = d_es_allocation_memoire; return; @@ -1851,9 +1852,9 @@ instruction_svd(struct_processus *s_etat .nombre_lignes; i++) { if ((((real8 **) (*((struct_matrice *) (*s_objet_resultat_2) - .objet)).tableau)[i] = malloc((*((struct_matrice *) - (*s_objet_resultat_2).objet)).nombre_colonnes * - sizeof(real8 *))) == NULL) + .objet)).tableau)[i] = malloc(((size_t) + (*((struct_matrice *) (*s_objet_resultat_2).objet)) + .nombre_colonnes) * sizeof(real8 *))) == NULL) { (*s_etat_processus).erreur_systeme = d_es_allocation_memoire; return;