[BACK]Return to magic-test.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / file

Diff for /src/usr.bin/file/magic-test.c between version 1.7 and 1.8

version 1.7, 2015/08/11 22:12:48 version 1.8, 2015/08/11 22:18:43
Line 235 
Line 235 
   
         if (ml->type_operator == '&')          if (ml->type_operator == '&')
                 value &= (int8_t)ml->type_operand;                  value &= (int8_t)ml->type_operand;
           else if (ml->type_operator == '-')
                   value -= (int8_t)ml->type_operand;
           else if (ml->type_operator == '+')
                   value += (int8_t)ml->type_operand;
           else if (ml->type_operator == '/')
                   value /= (int8_t)ml->type_operand;
           else if (ml->type_operator == '%')
                   value %= (int8_t)ml->type_operand;
           else if (ml->type_operator == '*')
                   value *= (int8_t)ml->type_operand;
         else if (ml->type_operator != ' ')          else if (ml->type_operator != ' ')
                 return (-1);                  return (-1);
   
Line 261 
Line 271 
   
         if (ml->type_operator == '&')          if (ml->type_operator == '&')
                 value &= (int16_t)ml->type_operand;                  value &= (int16_t)ml->type_operand;
           else if (ml->type_operator == '-')
                   value -= (int16_t)ml->type_operand;
           else if (ml->type_operator == '+')
                   value += (int16_t)ml->type_operand;
           else if (ml->type_operator == '/')
                   value /= (int16_t)ml->type_operand;
           else if (ml->type_operator == '%')
                   value %= (int16_t)ml->type_operand;
           else if (ml->type_operator == '*')
                   value *= (int16_t)ml->type_operand;
         else if (ml->type_operator != ' ')          else if (ml->type_operator != ' ')
                 return (-1);                  return (-1);
   
Line 287 
Line 307 
   
         if (ml->type_operator == '&')          if (ml->type_operator == '&')
                 value &= (int32_t)ml->type_operand;                  value &= (int32_t)ml->type_operand;
           else if (ml->type_operator == '-')
                   value -= (int32_t)ml->type_operand;
           else if (ml->type_operator == '+')
                   value += (int32_t)ml->type_operand;
           else if (ml->type_operator == '/')
                   value /= (int32_t)ml->type_operand;
           else if (ml->type_operator == '%')
                   value %= (int32_t)ml->type_operand;
           else if (ml->type_operator == '*')
                   value *= (int32_t)ml->type_operand;
         else if (ml->type_operator != ' ')          else if (ml->type_operator != ' ')
                 return (-1);                  return (-1);
   
Line 313 
Line 343 
   
         if (ml->type_operator == '&')          if (ml->type_operator == '&')
                 value &= (int64_t)ml->type_operand;                  value &= (int64_t)ml->type_operand;
           else if (ml->type_operator == '-')
                   value -= (int64_t)ml->type_operand;
           else if (ml->type_operator == '+')
                   value += (int64_t)ml->type_operand;
           else if (ml->type_operator == '/')
                   value /= (int64_t)ml->type_operand;
           else if (ml->type_operator == '%')
                   value %= (int64_t)ml->type_operand;
           else if (ml->type_operator == '*')
                   value *= (int64_t)ml->type_operand;
         else if (ml->type_operator != ' ')          else if (ml->type_operator != ' ')
                 return (-1);                  return (-1);
   
Line 335 
Line 375 
   
         if (ml->type_operator == '&')          if (ml->type_operator == '&')
                 value &= (uint8_t)ml->type_operand;                  value &= (uint8_t)ml->type_operand;
           else if (ml->type_operator == '-')
                   value -= (uint8_t)ml->type_operand;
           else if (ml->type_operator == '+')
                   value += (uint8_t)ml->type_operand;
           else if (ml->type_operator == '/')
                   value /= (uint8_t)ml->type_operand;
           else if (ml->type_operator == '%')
                   value %= (uint8_t)ml->type_operand;
           else if (ml->type_operator == '*')
                   value *= (uint8_t)ml->type_operand;
         else if (ml->type_operator != ' ')          else if (ml->type_operator != ' ')
                 return (-1);                  return (-1);
   
Line 361 
Line 411 
   
         if (ml->type_operator == '&')          if (ml->type_operator == '&')
                 value &= (uint16_t)ml->type_operand;                  value &= (uint16_t)ml->type_operand;
           else if (ml->type_operator == '-')
                   value -= (uint16_t)ml->type_operand;
           else if (ml->type_operator == '+')
                   value += (uint16_t)ml->type_operand;
           else if (ml->type_operator == '/')
                   value /= (uint16_t)ml->type_operand;
           else if (ml->type_operator == '%')
                   value %= (uint16_t)ml->type_operand;
           else if (ml->type_operator == '*')
                   value *= (uint16_t)ml->type_operand;
         else if (ml->type_operator != ' ')          else if (ml->type_operator != ' ')
                 return (-1);                  return (-1);
   
Line 387 
Line 447 
   
         if (ml->type_operator == '&')          if (ml->type_operator == '&')
                 value &= (uint32_t)ml->type_operand;                  value &= (uint32_t)ml->type_operand;
           else if (ml->type_operator == '-')
                   value -= (uint32_t)ml->type_operand;
           else if (ml->type_operator == '+')
                   value += (uint32_t)ml->type_operand;
           else if (ml->type_operator == '/')
                   value /= (uint32_t)ml->type_operand;
           else if (ml->type_operator == '%')
                   value %= (uint32_t)ml->type_operand;
           else if (ml->type_operator == '*')
                   value *= (uint32_t)ml->type_operand;
         else if (ml->type_operator != ' ')          else if (ml->type_operator != ' ')
                 return (-1);                  return (-1);
   
Line 413 
Line 483 
   
         if (ml->type_operator == '&')          if (ml->type_operator == '&')
                 value &= (uint64_t)ml->type_operand;                  value &= (uint64_t)ml->type_operand;
           else if (ml->type_operator == '-')
                   value -= (uint64_t)ml->type_operand;
           else if (ml->type_operator == '+')
                   value += (uint64_t)ml->type_operand;
           else if (ml->type_operator == '/')
                   value /= (uint64_t)ml->type_operand;
           else if (ml->type_operator == '%')
                   value %= (uint64_t)ml->type_operand;
           else if (ml->type_operator == '*')
                   value *= (uint64_t)ml->type_operand;
         else if (ml->type_operator != ' ')          else if (ml->type_operator != ' ')
                 return (-1);                  return (-1);
   

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8