From 068f013bc6cc34400480f6d97258b88148810b8d Mon Sep 17 00:00:00 2001 From: Jochen Hoenicke Date: Thu, 22 Mar 2018 23:04:13 +0100 Subject: [PATCH] Force size fields in storage to be 32 bit Better storage compatibility between 64 bit and 32 bit builds. --- firmware/storage.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/storage.h b/firmware/storage.h index 3a8a16ebc..8e1915354 100644 --- a/firmware/storage.h +++ b/firmware/storage.h @@ -35,7 +35,7 @@ #define STORAGE_BYTES(NAME, SIZE) \ bool has_##NAME; \ struct { \ - size_t size; \ + uint32_t size; \ uint8_t bytes[SIZE]; \ } NAME; @@ -48,7 +48,7 @@ typedef struct { uint32_t fingerprint; uint32_t child_num; struct { - size_t size; + uint32_t size; uint8_t bytes[32]; } chain_code;