genesismining / sgminer-gm

A multi-algo GPU miner
GNU General Public License v3.0
340 stars 146 forks source link

Cryptonight type conversion questions #138

Open tofutim opened 6 years ago

tofutim commented 6 years ago

In attempting to compile using VS, I noticed some type issues in Cryptonight. Some are probably benign, but sometimes the conversion is from a uint64 to a uint32, that makes me worried a bit. Any thoughts much appreciated...

Severity    Code    Description Project File    Line    Suppression State
Error   C2664   'void CNKeccak(uint64_t *,uint64_t *,uint32_t)' : cannot convert argument 2 from 'uint8_t *' to 'uint64_t *'    sgminer C:\msys64\home\timuy\Projects\sgminer-gm\algorithm\cryptonight.c    213 
Error   C2664   'void CNAESTransform(uint32_t *,const uint32_t *)' : cannot convert argument 1 from 'uint64_t *' to 'uint32_t *'    sgminer C:\msys64\home\timuy\Projects\sgminer-gm\algorithm\cryptonight.c    229 
Error   C2664   'void CNAESRnd(uint32_t *,const uint32_t *)' : cannot convert argument 1 from 'uint64_t [2]' to 'uint32_t *'    sgminer C:\msys64\home\timuy\Projects\sgminer-gm\algorithm\cryptonight.c    245 
Error   C2664   'void CNAESTransform(uint32_t *,const uint32_t *)' : cannot convert argument 1 from 'uint64_t *' to 'uint32_t *'    sgminer C:\msys64\home\timuy\Projects\sgminer-gm\algorithm\cryptonight.c    279 
Error   C2664   'void cryptonight(uint8_t *,uint8_t *,uint32_t,int)' : cannot convert argument 1 from 'uint32_t *' to 'uint8_t *'   sgminer C:\msys64\home\timuy\Projects\sgminer-gm\algorithm\cryptonight.c    333 
manfire commented 6 years ago

Everytime we compile something on VS is fail, better way use linux,

  1. autoreconf -fi .
  2. ./configure
  3. make voila