From 722012f02ee1caee1022a06704c0acf84d1953fe Mon Sep 17 00:00:00 2001 From: Noah Zinsmeister Date: Mon, 6 Jan 2020 12:39:28 -0500 Subject: [PATCH] make casting explicit --- contracts/libraries/UQ112x112.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/libraries/UQ112x112.sol b/contracts/libraries/UQ112x112.sol index 6fe5ad5..86e4936 100644 --- a/contracts/libraries/UQ112x112.sol +++ b/contracts/libraries/UQ112x112.sol @@ -10,6 +10,6 @@ library UQ112x112 { // divide a UQ112.112 by a uint112 and return the result as a UQ112.112 function qdiv(uint224 x, uint112 y) internal pure returns (uint224 z) { - z = x / y; + z = x / uint224(y); } }