Skip to content

Commit 6cb0501

Browse files
committed
fix call to ldexp for Solaris
1 parent a0c81f9 commit 6cb0501

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/s2/s2testing.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ uint32 S2Testing::Random::Rand32() {
109109

110110
double S2Testing::Random::RandDouble() {
111111
const int NUM_BITS = 53;
112-
return ldexp(GetBits(NUM_BITS), -NUM_BITS);
112+
return ldexp((double) GetBits(NUM_BITS), -NUM_BITS);
113113
}
114114

115115
int32 S2Testing::Random::Uniform(int32 n) {

0 commit comments

Comments
 (0)