<!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">2013-06-11 15:14:03 +0900 (Tue, 11 Jun 2013)</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/8f3e75b1419f3f083424e0614d182bba88cd0c18">8f3e75b1419f3f083424e0614d182bba88cd0c18</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">clang: suppress a warning

Use &quot;uint8_t *&quot; for key buffer.

    lib/pat.c:2904:36: warning: passing
          'uint8_t [4096]' to parameter of type 'char *' converts between pointers
          to integer types with different sign [-Wpointer-sign]
      byte_len = rk_conv(key, key_len, keybuf, GRN_TABLE_MAX_KEY_SIZE, &amp;state);
                                       ^~~~~~
    lib/pat.c:2780:50: note: passing argument to
          parameter 'buf' here
      ...*str, uint32_t str_len, char *buf, uint32_t buf_size, uint8_t *statep)
                                       ^</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/8f3e75b1419f3f083424e0614d182bba88cd0c18#diff-0">lib/pat.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/pat.c (+3 -2)</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/8f3e75b1419f3f083424e0614d182bba88cd0c18#L0L2776">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/8f3e75b1419f3f083424e0614d182bba88cd0c18#L0L2777">2777</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/8f3e75b1419f3f083424e0614d182bba88cd0c18#L0L2778">2778</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/8f3e75b1419f3f083424e0614d182bba88cd0c18#L0L2779">2779</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/8f3e75b1419f3f083424e0614d182bba88cd0c18#L0L2780">2780</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/8f3e75b1419f3f083424e0614d182bba88cd0c18#L0L2781">2781</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/8f3e75b1419f3f083424e0614d182bba88cd0c18#L0L2782">2782</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/8f3e75b1419f3f083424e0614d182bba88cd0c18#L0L2783">2783</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/8f3e75b1419f3f083424e0614d182bba88cd0c18#L0L2784">2784</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/8f3e75b1419f3f083424e0614d182bba88cd0c18#L0L2785">2785</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/8f3e75b1419f3f083424e0614d182bba88cd0c18#L0L2786">2786</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/8f3e75b1419f3f083424e0614d182bba88cd0c18#L0L2787">2787</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/8f3e75b1419f3f083424e0614d182bba88cd0c18#L0L2788">2788</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/8f3e75b1419f3f083424e0614d182bba88cd0c18#L0R2776">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/8f3e75b1419f3f083424e0614d182bba88cd0c18#L0R2777">2777</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/8f3e75b1419f3f083424e0614d182bba88cd0c18#L0R2778">2778</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/8f3e75b1419f3f083424e0614d182bba88cd0c18#L0R2779">2779</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: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/8f3e75b1419f3f083424e0614d182bba88cd0c18#L0R2780">2780</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/8f3e75b1419f3f083424e0614d182bba88cd0c18#L0R2781">2781</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/8f3e75b1419f3f083424e0614d182bba88cd0c18#L0R2782">2782</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/8f3e75b1419f3f083424e0614d182bba88cd0c18#L0R2783">2783</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/8f3e75b1419f3f083424e0614d182bba88cd0c18#L0R2784">2784</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: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/8f3e75b1419f3f083424e0614d182bba88cd0c18#L0R2785">2785</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/8f3e75b1419f3f083424e0614d182bba88cd0c18#L0R2786">2786</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/8f3e75b1419f3f083424e0614d182bba88cd0c18#L0R2787">2787</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/8f3e75b1419f3f083424e0614d182bba88cd0c18#L0R2788">2788</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/8f3e75b1419f3f083424e0614d182bba88cd0c18#L0R2789">2789</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">@@ -2777,12 +2777,13 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">rk_emit(rk_tree_node *rn, char **str)</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> } while (0)</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-not-changed" style="display: block; white-space: pre"> static uint32_t</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-rk_conv(const char *str, uint32_t str_len, char *buf, uint32_t buf_size, uint8_t *statep)</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+rk_conv(const char *str, uint32_t str_len, uint8_t *buf, uint32_t buf_size, uint8_t *statep)</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> {</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   uint32_t l;</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   uint8_t state = 0;</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   rk_tree_node *rn;</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-  char *e, *oc = buf, *oe = oc + buf_size;</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+  char *e;</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+  uint8_t *oc = buf, *oe = oc + buf_size;</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   const uint8_t *ic = (uint8_t *)str, *ic_ = ic, *ie = ic + str_len;</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   while (ic &lt; ie) {</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     if ((rn = rk_lookup(state, *ic))) {</span>
</pre>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>