some refines

This commit is contained in:
shuai-xu 2024-11-11 10:15:27 +08:00
parent eaa31d04c1
commit 39740d2ed9

View File

@ -103,8 +103,7 @@ struct TranslateImpl
/// Technically '\0' can be mapped into other character,
/// so we need to process '\0' delimiter separately
*dst++ = 0;
++data_size;
res_offsets[i] = data_size;
res_offsets[i] = ++data_size;
}
}