From 11d80f0f20b809e7646ec1949f443031a3f37a96 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Sat, 4 Jan 2020 16:02:48 +0000 Subject: [PATCH] legacy: remove hackish cast usage --- legacy/firmware/ethereum_tokens.c.mako | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/legacy/firmware/ethereum_tokens.c.mako b/legacy/firmware/ethereum_tokens.c.mako index 2734c6a430..277b3c3102 100644 --- a/legacy/firmware/ethereum_tokens.c.mako +++ b/legacy/firmware/ethereum_tokens.c.mako @@ -10,7 +10,8 @@ const TokenType tokens[TOKENS_COUNT] = { % endfor }; -const TokenType *UnknownToken = (const TokenType *)1; +static const TokenType _UnknownToken = { 0, "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff", " UNKN", 0 }; +const TokenType *UnknownToken = &_UnknownToken; const TokenType *tokenByChainAddress(uint32_t chain_id, const uint8_t *address) {