Diff for /rpl/src/operations_binaires.c between versions 1.19 and 1.62

version 1.19, 2011/06/20 17:54:21 version 1.62, 2018/05/30 09:27:39
Line 1 Line 1
 /*  /*
 ================================================================================  ================================================================================
   RPL/2 (R) version 4.1.0.prerelease.1    RPL/2 (R) version 4.1.29
   Copyright (C) 1989-2011 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.19  
changed lines
  Added in v.1.62


CVSweb interface <joel.bertrand@systella.fr>