Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cryptonight type conversion questions #138

Open
tofutim opened this issue Jun 28, 2018 · 1 comment
Open

Cryptonight type conversion questions #138

tofutim opened this issue Jun 28, 2018 · 1 comment

Comments

@tofutim
Copy link

tofutim commented Jun 28, 2018

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
Copy link

manfire commented Jul 4, 2018

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants