BlockPo / BlockPo-to-Tradelayer

Incubation Repo for the TradeLayer protocol, 0.2.0
http://www.tradelayer.org
Other
8 stars 8 forks source link

Type conversions. ... #457

Closed sinetek closed 2 years ago

sinetek commented 3 years ago
In file included from tradelayer/operators_algo_clearing.cpp:5:
In file included from ./tradelayer/mdex.h:4:
In file included from ./tradelayer/tx.h:9:
./tradelayer/tradelayer.h:78:26: warning: implicit conversion from 'double' to 'int64_t' (aka 'long') changes value from 1.0E-8 to 0 [-Wliteral-conversion]
const int64_t SatoshiH = 0.00000001;
              ~~~~~~~~   ^~~~~~~~~~
  CXX      tradelayer/libbitcoin_server_a-version.o

This is fairly wrong I think. Need to refactor.

patrickdugan commented 2 years ago

@sinetek hey did you see to this? We can close?

santos177 commented 2 years ago

Issue fixed, thanks @sinetek