<html lang='en'>
<head>
<meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
<title>
GitLab
</title>
</meta>
</head>
<style>
  img {
    max-width: 100%;
    height: auto;
  }
  p.details {
    font-style:italic;
    color:#777
  }
  .footer p {
    font-size:small;
    color:#777
  }
  pre.commit-message {
    white-space: pre-wrap;
  }
  .file-stats a {
    text-decoration: none;
  }
  .file-stats .new-file {
    color: #090;
  }
  .file-stats .deleted-file {
    color: #B00;
  }
</style>
<body>
<div class='content'>
<h3>Amar Takhar pushed to branch master at <a href="https://gitlab.com/NTPsec/ntpsec">NTPsec / ntpsec</a></h3>
<h4>
Commits:
</h4>
<ul>
<li>
<strong><a href="https://gitlab.com/NTPsec/ntpsec/commit/499c37918dabe8c276ee332f3d1556b0332b39fc">499c3791</a></strong>
<div>
<span>by Matthew Selsky</span>
<i>at 2015-12-09T14:38:39Z</i>
</div>
<pre class='commit-message'>EXPECT_DOUBLE_EQ should compare using a double, not a float.

Also compare against epsilon, not max.

Fixes #28</pre>
</li>
</ul>
<h4>1 changed file:</h4>
<ul>
<li class='file-stats'>
<a href='#diff-0'>
tests/ntpdig/packet_handling.c
</a>
</li>
</ul>
<h4>Changes:</h4>
<li id='diff-0'>
<a href='https://gitlab.com/NTPsec/ntpsec/commit/499c37918dabe8c276ee332f3d1556b0332b39fc#diff-0'>
<strong>
tests/ntpdig/packet_handling.c
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="color: #000000;background-color: #ffdddd">--- a/tests/ntpdig/packet_handling.c
</span><span style="color: #000000;background-color: #ddffdd">+++ b/tests/ntpdig/packet_handling.c
</span><span style="color: #aaaaaa">@@ -13,8 +13,8 @@
</span> 
 
 #define EXPECT_DOUBLE_EQ(a, b) { \
<span style="color: #000000;background-color: #ffdddd">-        float max = 0.0000000001; \
-       TEST_ASSERT_TRUE(abs(a - b) < max); \
</span><span style="color: #000000;background-color: #ddffdd">+   static const double epsilon = 1e-10; \
+       TEST_ASSERT_TRUE(abs(a - b) < epsilon); \
</span> }
 
 static bool LfpEquality(const l_fp* expected, const l_fp* actual) {
</code></pre>

<br>
</li>

</div>
<div class='footer' style='margin-top: 10px;'>
<p>

<br>
<a href="https://gitlab.com/NTPsec/ntpsec/commit/499c37918dabe8c276ee332f3d1556b0332b39fc">View it on GitLab</a>.
<br>
You're receiving this email because of your account on gitlab.com.
If you'd like to receive fewer emails, you can adjust your notification settings.
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Commit","url":"https://gitlab.com/NTPsec/ntpsec/commit/499c37918dabe8c276ee332f3d1556b0332b39fc"}}</script>
</p>
</div>
</body>
</html>