Diff for /rpl/src/operations_binaires.c between versions 1.15 and 1.52

version 1.15, 2011/01/03 12:08:09 version 1.52, 2015/01/05 15:32:24
Line 1 Line 1
 /*  /*
 ================================================================================  ================================================================================
   RPL/2 (R) version 4.0.20    RPL/2 (R) version 4.1.20
   Copyright (C) 1989-2011 Dr. BERTRAND Joël    Copyright (C) 1989-2015 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.15  
changed lines
  Added in v.1.52


CVSweb interface <joel.bertrand@systella.fr>