<!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-11 14:29:21 +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/ba4f11ded2e32f12b2cc94218a3f96e122cc5950">ba4f11ded2e32f12b2cc94218a3f96e122cc5950</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 warnings
Cast to "char *" explicitly.
lib/hash.c:1321:16: warning: returning
'uint8_t [4]' from a function with result type 'char *' converts between
pointers to integer types with different sign [-Wpointer-sign]
return entry->io_entry.key.buf;
^~~~~~~~~~~~~~~~~~~~~~~
lib/hash.c:1327:16: warning: returning
'uint8_t [8]' from a function with result type 'char *' converts between
pointers to integer types with different sign [-Wpointer-sign]
return entry->tiny_entry.key.buf;
^~~~~~~~~~~~~~~~~~~~~~~~~
lib/hash.c:1334:14: warning: returning
'uint8_t [4]' from a function with result type 'char *' converts between
pointers to integer types with different sign [-Wpointer-sign]
return entry->plain_entry.key;
^~~~~~~~~~~~~~~~~~~~~~
lib/hash.c:1336:14: warning: returning
'uint8_t [1]' from a function with result type 'char *' converts between
pointers to integer types with different sign [-Wpointer-sign]
return entry->rich_entry.key_and_value;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</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/ba4f11ded2e32f12b2cc94218a3f96e122cc5950#diff-0">lib/hash.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/hash.c (+4 -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/ba4f11ded2e32f12b2cc94218a3f96e122cc5950#L0L1317">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/ba4f11ded2e32f12b2cc94218a3f96e122cc5950#L0L1318">1318</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/ba4f11ded2e32f12b2cc94218a3f96e122cc5950#L0L1319">1319</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/ba4f11ded2e32f12b2cc94218a3f96e122cc5950#L0L1320">1320</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/ba4f11ded2e32f12b2cc94218a3f96e122cc5950#L0L1321">1321</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/ba4f11ded2e32f12b2cc94218a3f96e122cc5950#L0L1322">1322</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/ba4f11ded2e32f12b2cc94218a3f96e122cc5950#L0L1323">1323</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/ba4f11ded2e32f12b2cc94218a3f96e122cc5950#L0L1324">1324</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/ba4f11ded2e32f12b2cc94218a3f96e122cc5950#L0L1325">1325</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/ba4f11ded2e32f12b2cc94218a3f96e122cc5950#L0L1326">1326</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/ba4f11ded2e32f12b2cc94218a3f96e122cc5950#L0L1327">1327</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/ba4f11ded2e32f12b2cc94218a3f96e122cc5950#L0L1328">1328</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/ba4f11ded2e32f12b2cc94218a3f96e122cc5950#L0L1329">1329</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/ba4f11ded2e32f12b2cc94218a3f96e122cc5950#L0L1330">1330</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/ba4f11ded2e32f12b2cc94218a3f96e122cc5950#L0L1331">1331</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/ba4f11ded2e32f12b2cc94218a3f96e122cc5950#L0L1332">1332</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/ba4f11ded2e32f12b2cc94218a3f96e122cc5950#L0L1333">1333</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/ba4f11ded2e32f12b2cc94218a3f96e122cc5950#L0L1334">1334</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/ba4f11ded2e32f12b2cc94218a3f96e122cc5950#L0L1335">1335</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/ba4f11ded2e32f12b2cc94218a3f96e122cc5950#L0L1336">1336</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/ba4f11ded2e32f12b2cc94218a3f96e122cc5950#L0L1337">1337</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/ba4f11ded2e32f12b2cc94218a3f96e122cc5950#L0L1338">1338</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/ba4f11ded2e32f12b2cc94218a3f96e122cc5950#L0L1339">1339</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/ba4f11ded2e32f12b2cc94218a3f96e122cc5950#L0R1317">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/ba4f11ded2e32f12b2cc94218a3f96e122cc5950#L0R1318">1318</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/ba4f11ded2e32f12b2cc94218a3f96e122cc5950#L0R1319">1319</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/ba4f11ded2e32f12b2cc94218a3f96e122cc5950#L0R1320">1320</a></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/ba4f11ded2e32f12b2cc94218a3f96e122cc5950#L0R1321">1321</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/ba4f11ded2e32f12b2cc94218a3f96e122cc5950#L0R1322">1322</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/ba4f11ded2e32f12b2cc94218a3f96e122cc5950#L0R1323">1323</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/ba4f11ded2e32f12b2cc94218a3f96e122cc5950#L0R1324">1324</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/ba4f11ded2e32f12b2cc94218a3f96e122cc5950#L0R1325">1325</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/ba4f11ded2e32f12b2cc94218a3f96e122cc5950#L0R1326">1326</a></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/ba4f11ded2e32f12b2cc94218a3f96e122cc5950#L0R1327">1327</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/ba4f11ded2e32f12b2cc94218a3f96e122cc5950#L0R1328">1328</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/ba4f11ded2e32f12b2cc94218a3f96e122cc5950#L0R1329">1329</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/ba4f11ded2e32f12b2cc94218a3f96e122cc5950#L0R1330">1330</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/ba4f11ded2e32f12b2cc94218a3f96e122cc5950#L0R1331">1331</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/ba4f11ded2e32f12b2cc94218a3f96e122cc5950#L0R1332">1332</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/ba4f11ded2e32f12b2cc94218a3f96e122cc5950#L0R1333">1333</a></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/ba4f11ded2e32f12b2cc94218a3f96e122cc5950#L0R1334">1334</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/ba4f11ded2e32f12b2cc94218a3f96e122cc5950#L0R1335">1335</a></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/ba4f11ded2e32f12b2cc94218a3f96e122cc5950#L0R1336">1336</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/ba4f11ded2e32f12b2cc94218a3f96e122cc5950#L0R1337">1337</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/ba4f11ded2e32f12b2cc94218a3f96e122cc5950#L0R1338">1338</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/ba4f11ded2e32f12b2cc94218a3f96e122cc5950#L0R1339">1339</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">@@ -1318,22 +1318,22 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">grn_hash_entry_get_key(grn_ctx *ctx, grn_hash *hash, grn_hash_entry *entry)</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> if (hash->obj.header.flags & GRN_OBJ_KEY_VAR_SIZE) {</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> if (grn_hash_is_io_hash(hash)) {</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> if (entry->io_entry.flag & HASH_IMMEDIATE) {</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- return entry->io_entry.key.buf;</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ return (char *)entry->io_entry.key.buf;</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"> return (char *)grn_io_hash_key_at(ctx, hash, entry->io_entry.key.offset);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> }</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 (entry->tiny_entry.flag & HASH_IMMEDIATE) {</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- return entry->tiny_entry.key.buf;</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ return (char *)entry->tiny_entry.key.buf;</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"> return entry->tiny_entry.key.ptr;</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> }</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> }</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 (hash->key_size == sizeof(uint32_t)) {</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- return entry->plain_entry.key;</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ return (char *)entry->plain_entry.key;</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">- return entry->rich_entry.key_and_value;</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ return (char *)entry->rich_entry.key_and_value;</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> }</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> }</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> }</span>
</pre>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>