katakombi / rnnlm

Recurrent Neural Network language modeling toolkit
Apache License 2.0
39 stars 19 forks source link

Constant expression evaluates to 9223372039002259456 which cannot be narrowed to type 'long long' #2

Open holmez opened 8 years ago

holmez commented 8 years ago

I got the following error trying to compile in an Xcode project... "/.../rnnlm-0.4b/fastexp.h:543:11: Constant expression evaluates to 9223372039002259456 which cannot be narrowed to type 'long long'"

Repeated 6 times for the three lines containing "v4sil (0x80000000)" The macro (line 109) cast as "unsigned long long" but for some reason the compiler is seeing it as "long long" !

I also had issues with "exp10(...)" not recognized but I used "pow(10,...)" instead.