diff options
author | Tim Newsome <tim@sifive.com> | 2017-10-27 13:42:39 -0700 |
---|---|---|
committer | Tim Newsome <tim@sifive.com> | 2017-10-27 13:42:39 -0700 |
commit | 6a1690d2ec1a532f3ebe5c1d0aa9d3fe17363c2d (patch) | |
tree | 3b4f7fdc2fed3b155a3e65ac9357e4d58678f153 | |
parent | f4165279856cde06739a3b9a3ec54e8ff829fabd (diff) | |
download | riscv-openocd-6a1690d2ec1a532f3ebe5c1d0aa9d3fe17363c2d.zip riscv-openocd-6a1690d2ec1a532f3ebe5c1d0aa9d3fe17363c2d.tar.gz riscv-openocd-6a1690d2ec1a532f3ebe5c1d0aa9d3fe17363c2d.tar.bz2 |
Fix compile warning with new gcc.
Change-Id: I14ebf597f41429c0fc3ebac8da9c9f62c78fb1ae
-rw-r--r-- | src/flash/nor/stm32f2x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/nor/stm32f2x.c b/src/flash/nor/stm32f2x.c index 0e4abb5..65cb212 100644 --- a/src/flash/nor/stm32f2x.c +++ b/src/flash/nor/stm32f2x.c @@ -1321,7 +1321,7 @@ COMMAND_HANDLER(stm32x_handle_unlock_command) * this will also force a device unlock if set */ stm32x_info->option_bytes.RDP = 0xAA; if (stm32x_info->has_optcr2_pcrop) { - stm32x_info->option_bytes.optcr2_pcrop = OPTCR2_PCROP_RDP | (~1 << bank->num_sectors); + stm32x_info->option_bytes.optcr2_pcrop = OPTCR2_PCROP_RDP | (~1U << bank->num_sectors); } if (stm32x_write_options(bank) != ERROR_OK) { |