Diff for /rpl/src/operations_binaires.c between versions 1.32 and 1.63

version 1.32, 2012/03/01 10:14:08 version 1.63, 2018/12/24 15:56:37
Line 1 Line 1
 /*  /*
 ================================================================================  ================================================================================
   RPL/2 (R) version 4.1.7    RPL/2 (R) version 4.1.30
   Copyright (C) 1989-2012 Dr. BERTRAND Joël    Copyright (C) 1989-2018 Dr. BERTRAND Joël
   
   This file is part of RPL/2.    This file is part of RPL/2.
   
Line 39  unsigned char Line 39  unsigned char
 longueur_entiers_binaires(struct_processus *s_etat_processus)  longueur_entiers_binaires(struct_processus *s_etat_processus)
 {  {
     unsigned char           longueur_binaire;      unsigned char           longueur_binaire;
       unsigned char           i;
     unsigned long           i;      unsigned char           j;
     unsigned long           j;  
   
     longueur_binaire = 1;      longueur_binaire = 1;
     j = 1;      j = 0x01;
   
     for(i = 0; i < 6; i++)      for(i = 0; i < 6; i++)
     {      {
         longueur_binaire += (test_cfsf(s_etat_processus, 37 + i) == d_vrai)          if (test_cfsf(s_etat_processus, (unsigned char) (37 + i)) == d_vrai)
                 ? j : 0;          {
         j *= 2;              longueur_binaire = (unsigned char) (longueur_binaire + j);
           }
   
           j = (unsigned char) (j << 1);
     }      }
   
     return(longueur_binaire);      return(longueur_binaire);

Removed from v.1.32  
changed lines
  Added in v.1.63


CVSweb interface <joel.bertrand@systella.fr>