• Andre Przywara's avatar
    spi: Avoid signed shifts · de784a7c
    Andre Przywara authored
    
    
    Shifting signed types to the left is dodgy, especially by 31 bits, since
    it depends on the result type whether the result is undefined or not.
    
    Do not take any chances here, and mark those shift bases as unsigned where
    we can or will hit bit 31, to avoid undefined behaviour.
    Signed-off-by: default avatarAndre Przywara <osp@andrep.de>
    de784a7c
fel-spiflash.c 16.2 KB