1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2025-08-03 12:49:50 +00:00

fix index_range implementation

This commit is contained in:
bolero-MURAKAMI 2013-03-31 15:14:10 +09:00
parent 331aaa3559
commit 049d4592c2
78 changed files with 178 additions and 225 deletions

View file

@ -165,11 +165,11 @@ namespace sprout {
return offset == 0
? do_left_shift_impl_1(
wshift, offset,
sprout::index_range<0, N>::make()
sprout::make_index_tuple<N>::make()
)
: do_left_shift_impl_2(
wshift, offset, (CHAR_BIT * sprout::detail::sizeof_<unsigned long>::value) - offset,
sprout::index_range<0, N>::make()
sprout::make_index_tuple<N>::make()
)
;
}
@ -209,11 +209,11 @@ namespace sprout {
return offset == 0
? do_right_shift_impl_1(
wshift, offset, limit,
sprout::index_range<0, N>::make()
sprout::make_index_tuple<N>::make()
)
: do_right_shift_impl_2(
wshift, offset, limit, (CHAR_BIT * sprout::detail::sizeof_<unsigned long>::value) - offset,
sprout::index_range<0, N>::make()
sprout::make_index_tuple<N>::make()
)
;
}