From 6df35fc3b53f48cfb935057882319a48bd2e1ea2 Mon Sep 17 00:00:00 2001 From: ericsson Date: Mon, 31 Aug 2020 19:41:57 +0300 Subject: [PATCH] Make `cellog2` return `uint64` so that `CUSTODY_RESPONSE_DEPTH` has `uint64` type --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 427f08bc6..153888aae 100644 --- a/setup.py +++ b/setup.py @@ -152,8 +152,8 @@ GeneralizedIndex = NewType('GeneralizedIndex', int) SSZObject = TypeVar('SSZObject', bound=View) ''' SUNDRY_CONSTANTS_FUNCTIONS = ''' -def ceillog2(x: uint64) -> int: - return (x - 1).bit_length() +def ceillog2(x: uint64) -> uint64: + return uint64((x - 1).bit_length()) ''' PHASE0_SUNDRY_FUNCTIONS = ''' def get_eth1_data(block: Eth1Block) -> Eth1Data: