• R/O
  • SSH
  • HTTPS

hamigaki: 提交


Commit MetaInfo

修訂1606 (tree)
時間2008-04-24 22:44:37
作者hamigaki

Log Message

int -> uint

Change Summary

差異

--- hamigaki/trunk/hamigaki/archivers/detail/ucs2.hpp (revision 1605)
+++ hamigaki/trunk/hamigaki/archivers/detail/ucs2.hpp (revision 1606)
@@ -57,7 +57,7 @@
5757 {
5858 std::size_t size = n/2;
5959 for (std::size_t i = 0; i < size; ++i)
60- pwcs[i] = hamigaki::decode_int<big,2>(s + i*2);
60+ pwcs[i] = hamigaki::decode_uint<big,2>(s + i*2);
6161 return size;
6262 }
6363
@@ -80,7 +80,7 @@
8080 {
8181 std::size_t size = n/2;
8282 for (std::size_t i = 0; i < size; ++i)
83- pwcs[i] = hamigaki::decode_int<little,2>(s + i*2);
83+ pwcs[i] = hamigaki::decode_uint<little,2>(s + i*2);
8484 return size;
8585 }
8686
@@ -129,8 +129,8 @@
129129 {
130130 for (std::size_t i = 0; i < n; ++i)
131131 {
132- hamigaki::encode_int<big,2>(
133- s + i*2, static_cast<boost::int16_t>(pwcs[i]));
132+ hamigaki::encode_uint<big,2>(
133+ s + i*2, static_cast<boost::uint16_t>(pwcs[i]));
134134 }
135135 return n*2;
136136 }
@@ -160,8 +160,8 @@
160160 {
161161 for (std::size_t i = 0; i < n; ++i)
162162 {
163- hamigaki::encode_int<little,2>(
164- s + i*2, static_cast<boost::int16_t>(pwcs[i]));
163+ hamigaki::encode_uint<little,2>(
164+ s + i*2, static_cast<boost::uint16_t>(pwcs[i]));
165165 }
166166 return n*2;
167167 }
Show on old repository browser