<!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 <kou****@clear*****></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Date</dt>
<dd style="margin-left: 8.5em">2013-06-10 16:49:18 +0900 (Mon, 10 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/961421fa4aaeec2f7adaaf9eedb7f5078a1c1b90">961421fa4aaeec2f7adaaf9eedb7f5078a1c1b90</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, "Liberation Mono", Courier, monospace; line-height: 1.2; padding: 0.5em; width: auto">clang: suppress a warning
lib/db.c:7850:12: warning: assigning to
'const unsigned char *' from 'const char *' converts between pointers to
integer types with different sign [-Wpointer-sign]
ap = grn_obj_get_value_(ctx, keys->key, b->id, &as);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</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/961421fa4aaeec2f7adaaf9eedb7f5078a1c1b90#diff-0">lib/db.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, "Liberation Mono", 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/db.c (+7 -4)</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, "Liberation Mono", 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/961421fa4aaeec2f7adaaf9eedb7f5078a1c1b90#L0L7845">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/961421fa4aaeec2f7adaaf9eedb7f5078a1c1b90#L0L7846">7846</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/961421fa4aaeec2f7adaaf9eedb7f5078a1c1b90#L0L7847">7847</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/961421fa4aaeec2f7adaaf9eedb7f5078a1c1b90#L0L7848">7848</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/961421fa4aaeec2f7adaaf9eedb7f5078a1c1b90#L0L7849">7849</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/961421fa4aaeec2f7adaaf9eedb7f5078a1c1b90#L0L7850">7850</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/961421fa4aaeec2f7adaaf9eedb7f5078a1c1b90#L0L7851">7851</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/961421fa4aaeec2f7adaaf9eedb7f5078a1c1b90#L0L7852">7852</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/961421fa4aaeec2f7adaaf9eedb7f5078a1c1b90#L0L7853">7853</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/961421fa4aaeec2f7adaaf9eedb7f5078a1c1b90#L0L7854">7854</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/961421fa4aaeec2f7adaaf9eedb7f5078a1c1b90#L0L7855">7855</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/961421fa4aaeec2f7adaaf9eedb7f5078a1c1b90#L0L7856">7856</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/961421fa4aaeec2f7adaaf9eedb7f5078a1c1b90#L0L7857">7857</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/961421fa4aaeec2f7adaaf9eedb7f5078a1c1b90#L0L7858">7858</a></span>
</pre>
</th>
<th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", 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/961421fa4aaeec2f7adaaf9eedb7f5078a1c1b90#L0R7845">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/961421fa4aaeec2f7adaaf9eedb7f5078a1c1b90#L0R7846">7846</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/961421fa4aaeec2f7adaaf9eedb7f5078a1c1b90#L0R7847">7847</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/961421fa4aaeec2f7adaaf9eedb7f5078a1c1b90#L0R7848">7848</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/961421fa4aaeec2f7adaaf9eedb7f5078a1c1b90#L0R7849">7849</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/961421fa4aaeec2f7adaaf9eedb7f5078a1c1b90#L0R7850">7850</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </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/961421fa4aaeec2f7adaaf9eedb7f5078a1c1b90#L0R7851">7851</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/961421fa4aaeec2f7adaaf9eedb7f5078a1c1b90#L0R7852">7852</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/961421fa4aaeec2f7adaaf9eedb7f5078a1c1b90#L0R7853">7853</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </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/961421fa4aaeec2f7adaaf9eedb7f5078a1c1b90#L0R7854">7854</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/961421fa4aaeec2f7adaaf9eedb7f5078a1c1b90#L0R7855">7855</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/961421fa4aaeec2f7adaaf9eedb7f5078a1c1b90#L0R7856">7856</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/961421fa4aaeec2f7adaaf9eedb7f5078a1c1b90#L0R7857">7857</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/961421fa4aaeec2f7adaaf9eedb7f5078a1c1b90#L0R7858">7858</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/961421fa4aaeec2f7adaaf9eedb7f5078a1c1b90#L0R7859">7859</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/961421fa4aaeec2f7adaaf9eedb7f5078a1c1b90#L0R7860">7860</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/961421fa4aaeec2f7adaaf9eedb7f5078a1c1b90#L0R7861">7861</a></span>
</pre>
</th>
<td class="diff-content" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", 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">@@ -7846,13 +7846,16 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">compare_value(grn_ctx *ctx, sort_entry *a, sort_entry *b,</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> const unsigned char *ap, *bp;</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> for (i = 0; i < n_keys; i++, keys++) {</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> if (i) {</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ const char *ap_raw, *bp_raw;</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> if (keys->flags & GRN_TABLE_SORT_DESC) {</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- ap = grn_obj_get_value_(ctx, keys->key, b->id, &as);</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- bp = grn_obj_get_value_(ctx, keys->key, a->id, &bs);</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ ap_raw = grn_obj_get_value_(ctx, keys->key, b->id, &as);</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ bp_raw = grn_obj_get_value_(ctx, keys->key, a->id, &bs);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> } else {</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- ap = grn_obj_get_value_(ctx, keys->key, a->id, &as);</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- bp = grn_obj_get_value_(ctx, keys->key, b->id, &bs);</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ ap_raw = grn_obj_get_value_(ctx, keys->key, a->id, &as);</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ bp_raw = grn_obj_get_value_(ctx, keys->key, b->id, &bs);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> }</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ ap = (const unsigned char *)ap_raw;</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ bp = (const unsigned char *)bp_raw;</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> } else {</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> if (keys->flags & GRN_TABLE_SORT_DESC) {</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> ap = b->value; as = b->size;</span>
</pre>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>