<!DOCTYPE html>
<html>
  <head>
  </head>
  <body>
    <dl style="line-height: 1.5; margin-left: 2em">
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">Author</dt>
      <dd style="margin-left: 8.5em">Kouhei Sutou &lt;kou****@clear*****&gt;</dd>
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">Date</dt>
      <dd style="margin-left: 8.5em">2017-10-27 23:29:54 +0900 (Fri, 27 Oct 2017)</dd>
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">New Revision</dt>
      <dd style="margin-left: 8.5em"><a href="https://github.com/groonga/groonga/commit/7918ecc92f6603362277c31144281f3746ae3f93">7918ecc92f6603362277c31144281f3746ae3f93</a></dd>
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">Message</dt>
      <dd style="margin-left: 8.5em"><pre style="border: 1px solid #aaa; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; padding: 0.5em; width: auto">Use epsilon to compare double</pre></dd>
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">Modified files</dt>
      <dd style="margin-left: 8.5em">
        <ul>
          <li><a href="https://github.com/groonga/groonga/commit/7918ecc92f6603362277c31144281f3746ae3f93#diff-989edc8e30bc7b75343333c19d5432ca">lib/operator.c</a></li>
        </ul>
      </dd>
    </dl>

    <div class="diff-section" style="clear: both">
      <table style="border-collapse: collapse; border: 1px solid #aaa">
        <thead>
          <tr class="diff-header" style="border: 1px solid #aaa">
            <td colspan="3">
<pre style="border: 0; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">  Modified: lib/operator.c (+3 -1)</span>
<span class="diff-header-mark" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">===================================================================</span>
</pre>
            </td>
          </tr>
        </thead>
        <tbody>
          <tr>
            <th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/7918ecc92f6603362277c31144281f3746ae3f93#diff-989edc8e30bc7b75343333c19d5432caL21">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/7918ecc92f6603362277c31144281f3746ae3f93#diff-989edc8e30bc7b75343333c19d5432caL22">22</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/7918ecc92f6603362277c31144281f3746ae3f93#diff-989edc8e30bc7b75343333c19d5432caL23">23</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/7918ecc92f6603362277c31144281f3746ae3f93#diff-989edc8e30bc7b75343333c19d5432caL24">24</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/7918ecc92f6603362277c31144281f3746ae3f93#diff-989edc8e30bc7b75343333c19d5432caL25">25</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/7918ecc92f6603362277c31144281f3746ae3f93#diff-989edc8e30bc7b75343333c19d5432caL26">26</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/7918ecc92f6603362277c31144281f3746ae3f93#diff-989edc8e30bc7b75343333c19d5432caL27">27</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/7918ecc92f6603362277c31144281f3746ae3f93#diff-989edc8e30bc7b75343333c19d5432caL194">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/7918ecc92f6603362277c31144281f3746ae3f93#diff-989edc8e30bc7b75343333c19d5432caL195">195</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/7918ecc92f6603362277c31144281f3746ae3f93#diff-989edc8e30bc7b75343333c19d5432caL196">196</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/7918ecc92f6603362277c31144281f3746ae3f93#diff-989edc8e30bc7b75343333c19d5432caL197">197</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffecec; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/7918ecc92f6603362277c31144281f3746ae3f93#diff-989edc8e30bc7b75343333c19d5432caL198">198</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/7918ecc92f6603362277c31144281f3746ae3f93#diff-989edc8e30bc7b75343333c19d5432caL199">199</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/7918ecc92f6603362277c31144281f3746ae3f93#diff-989edc8e30bc7b75343333c19d5432caL200">200</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/7918ecc92f6603362277c31144281f3746ae3f93#diff-989edc8e30bc7b75343333c19d5432caL201">201</a></span>
</pre>
            </th>
            <th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/7918ecc92f6603362277c31144281f3746ae3f93#diff-989edc8e30bc7b75343333c19d5432caR21">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/7918ecc92f6603362277c31144281f3746ae3f93#diff-989edc8e30bc7b75343333c19d5432caR22">22</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/7918ecc92f6603362277c31144281f3746ae3f93#diff-989edc8e30bc7b75343333c19d5432caR23">23</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/7918ecc92f6603362277c31144281f3746ae3f93#diff-989edc8e30bc7b75343333c19d5432caR24">24</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/7918ecc92f6603362277c31144281f3746ae3f93#diff-989edc8e30bc7b75343333c19d5432caR25">25</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/7918ecc92f6603362277c31144281f3746ae3f93#diff-989edc8e30bc7b75343333c19d5432caR26">26</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/7918ecc92f6603362277c31144281f3746ae3f93#diff-989edc8e30bc7b75343333c19d5432caR27">27</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/7918ecc92f6603362277c31144281f3746ae3f93#diff-989edc8e30bc7b75343333c19d5432caR28">28</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/7918ecc92f6603362277c31144281f3746ae3f93#diff-989edc8e30bc7b75343333c19d5432caR29">29</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/7918ecc92f6603362277c31144281f3746ae3f93#diff-989edc8e30bc7b75343333c19d5432caR196">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/7918ecc92f6603362277c31144281f3746ae3f93#diff-989edc8e30bc7b75343333c19d5432caR197">197</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/7918ecc92f6603362277c31144281f3746ae3f93#diff-989edc8e30bc7b75343333c19d5432caR198">198</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/7918ecc92f6603362277c31144281f3746ae3f93#diff-989edc8e30bc7b75343333c19d5432caR199">199</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/7918ecc92f6603362277c31144281f3746ae3f93#diff-989edc8e30bc7b75343333c19d5432caR200">200</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/7918ecc92f6603362277c31144281f3746ae3f93#diff-989edc8e30bc7b75343333c19d5432caR201">201</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/7918ecc92f6603362277c31144281f3746ae3f93#diff-989edc8e30bc7b75343333c19d5432caR202">202</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/7918ecc92f6603362277c31144281f3746ae3f93#diff-989edc8e30bc7b75343333c19d5432caR203">203</a></span>
</pre>
            </th>
            <td class="diff-content" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -22,6 +22,8 @@</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> #include &quot;grn_normalizer.h&quot;</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-not-changed" style="display: block; white-space: pre"> #include &lt;string.h&gt;</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+#include &lt;math.h&gt;</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+#include &lt;float.h&gt;</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-not-changed" style="display: block; white-space: pre"> #ifdef GRN_WITH_ONIGMO</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> # define GRN_SUPPORT_REGEXP</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -195,7 +197,7 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">grn_operator_to_exec_func(grn_operator op)</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre">     r = (x_ == GRN_UINT64_VALUE(y));\</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     break;\</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   case GRN_DB_FLOAT :\</span>
<span class="diff-deleted" style="background-color: #ffecec; color: #000000; display: block; white-space: pre">-    r = ((x_ <span class="diff-deleted-word" style="background-color: #f8cbcb; color: #000000">&lt;=</span> GRN_FLOAT_VALUE(y)) <span class="diff-deleted-word" style="background-color: #f8cbcb; color: #000000">&amp;&amp;</span> <span class="diff-deleted-word" style="background-color: #f8cbcb; color: #000000">(x_ &gt;= GRN_F</span>L<span class="diff-deleted-word" style="background-color: #f8cbcb; color: #000000">OAT</span>_<span class="diff-deleted-word" style="background-color: #f8cbcb; color: #000000">VALU</span>E<span class="diff-deleted-word" style="background-color: #f8cbcb; color: #000000">(y))</span>);\</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+    r = (<span class="diff-added-word" style="background-color: #a6f3a6; color: #000000">fabs</span>(x_ <span class="diff-added-word" style="background-color: #a6f3a6; color: #000000">-</span> GRN_FLOAT_VALUE(y)) <span class="diff-added-word" style="background-color: #a6f3a6; color: #000000">&lt;</span> <span class="diff-added-word" style="background-color: #a6f3a6; color: #000000">DBL</span>_<span class="diff-added-word" style="background-color: #a6f3a6; color: #000000">EPSI</span>LO<span class="diff-added-word" style="background-color: #a6f3a6; color: #000000">N</span>);\</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     break;\</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   case GRN_DB_SHORT_TEXT :\</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   case GRN_DB_TEXT :\</span>
</pre>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>