Skip to content

Commit

Permalink
Explicitly cast to avoid a warning
Browse files Browse the repository at this point in the history
  • Loading branch information
alriddoch committed Feb 28, 2012
1 parent e067a7e commit 498ec3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wfmath/randgen_test.cpp
Expand Up @@ -37,7 +37,7 @@ int main()
MTRand one(23);

printf("%.16f %.16f\n", one.rand(), one.rand());
float oneres = one.rand();
float oneres = static_cast<float>(one.rand());

MTRand two(23);

Expand Down

0 comments on commit 498ec3a

Please sign in to comment.