浏览代码

lolunit: explicitly cast lolunit_assert_doubles_equal() arguments to double.

undefined
Sam Hocevar 10 年前
父节点
当前提交
fd25e64d5c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      tools/lolunit/lolunit.h

+ 1
- 1
tools/lolunit/lolunit.h 查看文件

@@ -291,7 +291,7 @@ public:
do { \ do { \
m_asserts++; \ m_asserts++; \
using std::fabs; \ using std::fabs; \
if (True() && fabs((a) - (b)) > fabs((t))) \
if (True() && fabs(double(a) - double(b)) > fabs(double(t))) \
{ \ { \
m_errorlog << "\n\n"; \ m_errorlog << "\n\n"; \
m_errorlog << ++m_failcases << ") test: " \ m_errorlog << ++m_failcases << ") test: " \


正在加载...
取消
保存