Commit 743e6b62 authored by nagayama15's avatar nagayama15

ループの境界条件のバグを修正

parent 1961b7f8
...@@ -166,7 +166,7 @@ namespace ...@@ -166,7 +166,7 @@ namespace
const auto bit_mask = (1 << possible_embedding_bits[partition_opt]) - 1; const auto bit_mask = (1 << possible_embedding_bits[partition_opt]) - 1;
for (; block_index + partition_opt < blocks.size(); block_index += partition_opt) for (; block_index + partition_opt <= blocks.size(); block_index += partition_opt)
{ {
// Part of watermark to embed. // Part of watermark to embed.
const auto data = (watermark_opt >> bit_pos_) & bit_mask; const auto data = (watermark_opt >> bit_pos_) & bit_mask;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment