Max-Coin / maxcoin

The main source tree for the Max Coin cryptocurrency
MIT License
79 stars 62 forks source link

Compile error wake.cpp unsigned int #69

Closed Ur-Quan closed 5 years ago

Ur-Quan commented 5 years ago

Compiling the latest src on ubuntu. Errors:

wake.cpp: In member function ‘void CryptoPP::WAKE_Base::GenKey(CryptoPP::word32, CryptoPP::word32, CryptoPP::word32, CryptoPP::word32)’: wake.cpp:34:15: error: narrowing conversion of ‘3868867420’ from ‘unsigned int’ to ‘int’ inside { } [-Wnarrowing] 0x9ee27cf3, } ; wake.cpp:34:15: error: narrowing conversion of ‘3553042405’ from ‘unsigned int’ to ‘int’ inside { } [-Wnarrowing] wake.cpp:34:15: error: narrowing conversion of ‘2872865746’ from ‘unsigned int’ to ‘int’ inside { } [-Wnarrowing] wake.cpp:34:15: error: narrowing conversion of ‘2665643251’ from ‘unsigned int’ to ‘int’ inside { } [-Wnarrowing]

I think this is the fix. After that compiled successfully, did not test yet.

daygle commented 5 years ago

This fix worked for me :)

ghost commented 5 years ago

Thanks for the research and confirm, external crptopp is the goal but we'll keep changing the bundled versions until that happens.

ghost commented 5 years ago

this was fixed, but there seems to have been an issue with the commits