--- rpl/src/instructions_s2.c 2013/02/27 17:11:44 1.47 +++ rpl/src/instructions_s2.c 2020/01/10 11:15:48 1.73 @@ -1,7 +1,7 @@ /* ================================================================================ - RPL/2 (R) version 4.1.13 - Copyright (C) 1989-2013 Dr. BERTRAND Joël + RPL/2 (R) version 4.1.32 + Copyright (C) 1989-2020 Dr. BERTRAND Joël This file is part of RPL/2. @@ -1035,8 +1035,8 @@ instruction_str_fleche(struct_processus unsigned char registre_interruption; unsigned char *tampon; - unsigned long nombre_caracteres_supplementaires; - unsigned long position_courante; + integer8 nombre_caracteres_supplementaires; + integer8 position_courante; (*s_etat_processus).erreur_execution = d_ex; @@ -1155,9 +1155,9 @@ instruction_str_fleche(struct_processus // de caractères incluses. Le seul caractère protégé est le '\' // qui est doublé. - if ((chaine_convertie = malloc((strlen(tampon) + - nombre_caracteres_supplementaires + 1) * sizeof(unsigned char))) - == NULL) + if ((chaine_convertie = malloc((strlen(tampon) + ((size_t) + nombre_caracteres_supplementaires) + 1) * + sizeof(unsigned char))) == NULL) { (*s_etat_processus).erreur_systeme = d_es_allocation_memoire; return; @@ -1256,6 +1256,7 @@ instruction_str_fleche(struct_processus .definitions_chainees); (*s_etat_processus).instruction_courante = commande; + (*s_etat_processus).type_en_cours = NON; recherche_type(s_etat_processus); if (((*s_etat_processus).erreur_execution != d_ex) ||