You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
warning: implicit conversion from 'int' to 'float' changes value from 2147483647 to 2147483648 [-Wimplicit-const-int-float-conversion]
note: expanded from macro 'RAND_MAX'
maybe change like this ? or do a c-style cast for RAND_MAX?
// float r = (float) rand() / RAND_MAX;
float r = rand() / (RAND_MAX + 1.0f); // [0, 1)
float r = rand() / (float)RAND_MAX; // [0, 1]
The text was updated successfully, but these errors were encountered:
Hi there,
par_shapes.h:1103:32:
maybe change like this ? or do a c-style cast for RAND_MAX?
The text was updated successfully, but these errors were encountered: