coatless-rpkg / sitmo

Sitmo parallel random number engine headers in an R package
http://r-pkg.thecoatlessprofessor.com/sitmo/
Other
7 stars 5 forks source link

Address signed and unsigned integer comparison in sitmo header #1

Closed coatless closed 7 years ago

coatless commented 7 years ago

From:

../inst/include/sitmo.h:229:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

if (z < 8 - _o_counter) {

To:

if (z < (uint64_t)(8 - _o_counter)) {