Diff for /rpl/src/operations_binaires.c between versions 1.40 and 1.41

version 1.40, 2013/02/27 17:11:45 version 1.41, 2013/03/21 11:30:31
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)          longueur_binaire = (unsigned char) (longueur_binaire +
                 ? j : 0;                  ((test_cfsf(s_etat_processus,
         j *= 2;                  (unsigned char) (37 + i) == d_vrai) ? j : 0)));
           j = (unsigned char) (j << 1);
     }      }
   
     return(longueur_binaire);      return(longueur_binaire);

Removed from v.1.40  
changed lines
  Added in v.1.41


CVSweb interface <joel.bertrand@systella.fr>