fix build (client): Change 'uint' -> 'uint32_t'

Apparently the includes don't define 'uint' on windows
This commit is contained in:
John Colvin committed 2022-04-19 11:34:28 -04:00
1 parent 25d5f36645
commit ff75ade140
1 file changed
+1 -2
+1 -2
View File
@@ -1,6 +1,5 @@
#pragma once
#include <bits/stdint-uintn.h>
#include <cstdint>
#include <string>
@@ -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<uint>(qty); }
uint32_t value() const { return static_cast<uint32_t>(qty); }
double whole_value() const { return qty; }
static bool equal_d(double d1, double d2) {
return std::abs(d1 - d2) <= err;