Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[C++] Make code compile with -Wfloat-equal
This will allow the code to be compiled with `-Wfloat-equal` as this would result in the folowing warning/error: vendor/flatbuffers/include/flatbuffers/base.h:465:69: error: comparing floating point with == or != is unsafe [-Werror,-Wfloat-equal] template<typename T> inline bool IsTheSameAs(T e, T def) { return e == def; } But the way it is used in flatbuffers it is ok to compare floating points with ==.
- Loading branch information