From 332ce1a8002a05651c350ba298036d601c14fa8e Mon Sep 17 00:00:00 2001 From: Danny Willems Date: Fri, 15 May 2020 19:50:46 +0200 Subject: [PATCH] Use preprocessor for ENTRY_SERIALIZED_LENGTH --- src/rust/include/librustzcash.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rust/include/librustzcash.h b/src/rust/include/librustzcash.h index 70f39539a..f69ae6c6d 100644 --- a/src/rust/include/librustzcash.h +++ b/src/rust/include/librustzcash.h @@ -8,7 +8,8 @@ #include #endif -const int ENTRY_SERIALIZED_LENGTH = 180; +#define ENTRY_SERIALIZED_LENGTH 180 + typedef struct HistoryEntry { unsigned char bytes[ENTRY_SERIALIZED_LENGTH]; } HistoryEntry;