Fixing float generator in regression tests

This commit is contained in:
Jacob Levinson 2025-06-06 14:10:12 -07:00
parent 8dedc74bb2
commit 126c815f83
4 changed files with 4 additions and 4 deletions

View file

@ -50,7 +50,7 @@ public:
static const char* type_str() {
return "float";
}
static int generate() {
static float generate() {
return static_cast<float>(rand()) / RAND_MAX;
}
static bool compare(float a, float b, int index, int errors) {

View file

@ -50,7 +50,7 @@ public:
static const char* type_str() {
return "float";
}
static int generate() {
static float generate() {
return static_cast<float>(rand()) / RAND_MAX;
}
static bool compare(float a, float b, int index, int errors) {

View file

@ -50,7 +50,7 @@ public:
static const char* type_str() {
return "float";
}
static int generate() {
static float generate() {
return static_cast<float>(rand()) / RAND_MAX;
}
static bool compare(float a, float b, int index, int errors) {

View file

@ -50,7 +50,7 @@ public:
static const char* type_str() {
return "float";
}
static int generate() {
static float generate() {
return static_cast<float>(rand()) / RAND_MAX;
}
static bool compare(float a, float b, int index, int errors) {