Changeset 691 for trunk/softs


Ignore:
Timestamp:
May 15, 2014, 2:40:46 PM (11 years ago)
Author:
cfuguet
Message:

Bugfix in tsar_boot:
Logical OR replace by Bitwise OR to build word

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/softs/tsar_boot/src/reset_utils.c

    r655 r691  
    6767{
    6868    unsigned char val = (unsigned char) value;
    69     int word = (val << 24) || (val << 16) ||
    70                (val << 8 ) || (val      );
     69    int word = (val << 24) | (val << 16) | (val << 8 ) | val;
    7170
    7271    /*
Note: See TracChangeset for help on using the changeset viewer.