From 04f3fe0c22bc8f509a12cf02647c611aae041ea3 Mon Sep 17 00:00:00 2001 From: Nikita Stupin <18281368+nikitastupin@users.noreply.github.com> Date: Thu, 23 Feb 2023 10:38:21 +0100 Subject: [PATCH] Replace `not` with `iszero` (#11) --- contracts/TypedMemView.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/TypedMemView.sol b/contracts/TypedMemView.sol index 611c952..a053d2d 100644 --- a/contracts/TypedMemView.sol +++ b/contracts/TypedMemView.sol @@ -200,7 +200,7 @@ library TypedMemView { uint256 _end = end(memView); assembly { // solium-disable-previous-line security/no-inline-assembly - ret := not(gt(_end, mload(0x40))) + ret := iszero(gt(_end, mload(0x40))) } }