From ff75ade1409cf176ee9db03dc63154ae5db35ca3 Mon Sep 17 00:00:00 2001 From: John Colvin Date: Tue, 19 Apr 2022 11:34:28 -0400 Subject: [PATCH] fix build (client): Change 'uint' -> 'uint32_t' Apparently the includes don't define 'uint' on windows --- src/lib/domain_model/common.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/domain_model/common.h b/src/lib/domain_model/common.h index 885649b63..f0a034541 100644 --- a/src/lib/domain_model/common.h +++ b/src/lib/domain_model/common.h @@ -1,6 +1,5 @@ #pragma once -#include #include #include @@ -13,7 +12,7 @@ struct CQuantity { constexpr static double err = 0.0000001; CQuantity() {} CQuantity(uint32_t whole_qty) : qty(whole_qty) {} - uint32_t value() const { return static_cast(qty); } + uint32_t value() const { return static_cast(qty); } double whole_value() const { return qty; } static bool equal_d(double d1, double d2) { return std::abs(d1 - d2) <= err;