Skip to content

Commit

Permalink
Fixed bug with float/double.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterfpeterson committed Apr 27, 2011
1 parent cbcc504 commit ed4abed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,9 @@ void Renderer::showData(BinFile &file, size_t offset, size_t length)
innerShowData<uint64_t>(file, offset, length);
else if (descr == "int64")
innerShowData<int64_t>(file, offset, length);
else if (descr == "float")
else if (descr == "float32" || descr == "float")
innerShowData<float>(file, offset, length);
else if (descr == "double")
else if (descr == "float64" || descr == "double")
innerShowData<double>(file, offset, length);
else
throw runtime_error("The code should have never gotten to this place");
Expand Down

0 comments on commit ed4abed

Please sign in to comment.