summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2011-07-15 12:45:53 -0700
committerRandall Spangler <rspangler@chromium.org>2011-07-15 13:06:31 -0700
commit8409b374980721bd120de2511c37bd6e171de910 (patch)
treefb1b5659786fc70c276ccd765ff32e11ef660864
parent7994d07d565d11557a1701ff16e892d7ab8e0d41 (diff)
downloadvboot-8409b374980721bd120de2511c37bd6e171de910.tar.gz
Add typecast to fix compiling in MSVC
BUG=none TEST=make && make runtests Change-Id: I774645c1059df70cd25ea6a3f78161eb916d7293 Reviewed-on: http://gerrit.chromium.org/gerrit/4192 Reviewed-by: Stefan Reinauer <reinauer@google.com> Tested-by: Randall Spangler <rspangler@chromium.org>
-rw-r--r--firmware/lib/vboot_firmware.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/lib/vboot_firmware.c b/firmware/lib/vboot_firmware.c
index e2b91adc..7c69cad3 100644
--- a/firmware/lib/vboot_firmware.c
+++ b/firmware/lib/vboot_firmware.c
@@ -300,7 +300,7 @@ int LoadFirmware(LoadFirmwareParams* params) {
/* Save the good index, now that we're sure we can actually use
* this firmware. That's the one we'll boot. */
good_index = index;
- shared->firmware_index = index;
+ shared->firmware_index = (uint8_t)index;
/* Since we now know which firmware to boot, we can update the
* bootable firmware key block mode. */
boot_fw_keyblock_flags = key_block->key_block_flags;