Closed hrzafer closed 8 years ago
I was not able to reproduce these on my distro. The warnings all seem rather benign, but it would be good to figure out why you're getting them and I am not. What is your version of gcc? And are you running 32 bit or something funny like that?
The first 2 issues have been addressed by https://github.com/stanfordnlp/glove/pull/11.
The 3rd and 4th issues with integer overflow correspond to the helper funciton rand_long(long n), which produces numbers in [0, n-1], with n as high as 2^31, rather than the smaller [0, 250000] range supported by rand(). According to stackoverflow, there is not really a better way of doing this. Worst case will result in an improper shuffle of the corpus on systems implementing the undefined overflow behavior in a malicious way. If anyone has a better dependency-free version of rand_long(long n), please submit a pull request. For now, I'm going to mark this issue as closed though.
I get the following warnings on ubuntu 14.04 LTS