<!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">2012-03-28 00:36:04 +0900 (Wed, 28 Mar 2012)</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/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e">26bd17691b195282564afc9329e0fb9dfc89378e</a></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Log</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">Work on Ubuntu Hardy amd64 with gcc-4.2.3
Reported by Kazuhiko Shiozaki. Thanks!!!</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/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e#diff-0">ha_mroonga.cc</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"><span class="diff-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre"> Modified: ha_mroonga.cc (+5 -3)</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"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e#L0L8920">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e#L0L8921">8921</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e#L0L8922">8922</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e#L0L8923">8923</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e#L0L8924">8924</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/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e#L0L8925">8925</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e#L0L8926">8926</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e#L0L8927">8927</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e#L0L8928">8928</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e#L0L8929">8929</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e#L0L8930">8930</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e#L0L8931">8931</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/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e#L0L8932">8932</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e#L0L8933">8933</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e#L0L8934">8934</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e#L0L8939">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e#L0L8940">8940</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e#L0L8941">8941</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e#L0L8942">8942</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e#L0L8943">8943</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/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e#L0L8944">8944</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e#L0L8945">8945</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e#L0L8946">8946</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e#L0L8947">8947</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e#L0L8948">8948</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e#L0L8949">8949</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/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e#L0L8950">8950</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e#L0L8951">8951</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e#L0L8952">8952</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"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e#L0R8920">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e#L0R8921">8921</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e#L0R8922">8922</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e#L0R8923">8923</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/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e#L0R8924">8924</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e#L0R8925">8925</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e#L0R8926">8926</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e#L0R8927">8927</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e#L0R8928">8928</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e#L0R8929">8929</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e#L0R8930">8930</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/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e#L0R8931">8931</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e#L0R8932">8932</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e#L0R8933">8933</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e#L0R8934">8934</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e#L0R8935">8935</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e#L0R8940">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e#L0R8941">8941</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e#L0R8942">8942</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e#L0R8943">8943</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/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e#L0R8944">8944</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e#L0R8945">8945</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e#L0R8946">8946</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e#L0R8947">8947</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e#L0R8948">8948</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e#L0R8949">8949</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e#L0R8950">8950</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e#L0R8951">8951</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e#L0R8952">8952</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e#L0R8953">8953</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/26bd17691b195282564afc9329e0fb9dfc89378e#L0R8954">8954</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"><span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -8921,14 +8921,15 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">int ha_mroonga::storage_encode_key(Field *field, const uchar *key,</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> DBUG_RETURN(error);</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-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-void ha_mroonga::storage_encode_multiple_column_key_float(float value,</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+void ha_mroonga::storage_encode_multiple_column_key_float(volatile float value,</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> uint data_size,</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> uchar *buffer,</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> bool decode)</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> {</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> MRN_DBUG_ENTER_METHOD();</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> int n_bits = (data_size * 8 - 1);</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- int int_value = *((int *)(&value));</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ volatile int *int_value_pointer = (int *)(&value);</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ int int_value = *int_value_pointer;</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> if (!decode)</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> int_value ^= ((int_value >> n_bits) | (1 << n_bits));</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> mrn_byte_order_host_to_network(buffer, &int_value, data_size);</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -8940,13 +8941,14 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">void ha_mroonga::storage_encode_multiple_column_key_float(float value,</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> DBUG_VOID_RETURN;</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-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-void ha_mroonga::storage_encode_multiple_column_key_double(double value,</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+void ha_mroonga::storage_encode_multiple_column_key_double(volatile double value,</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> uint data_size,</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> uchar *buffer,</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> bool decode)</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> {</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> MRN_DBUG_ENTER_METHOD();</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> int n_bits = (data_size * 8 - 1);</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ volatile double double_value = value;</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> volatile long long int *long_long_value_pointer = (long long int *)(&value);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> volatile long long int long_long_value = *long_long_value_pointer;</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> if (!decode)</span>
</pre>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>