Diff for /rpl/src/operations_binaires.c between versions 1.26 and 1.42

version 1.26, 2011/07/25 07:45:00 version 1.42, 2013/03/21 22:11:13
Line 1 Line 1
 /*  /*
 ================================================================================  ================================================================================
   RPL/2 (R) version 4.1.2    RPL/2 (R) version 4.1.13
   Copyright (C) 1989-2011 Dr. BERTRAND Joël    Copyright (C) 1989-2013 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)          longueur_binaire = ((unsigned char) longueur_binaire) +
                 ? j : 0;                  ((unsigned char) (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.26  
changed lines
  Added in v.1.42


CVSweb interface <joel.bertrand@systella.fr>