Skip to content

Commit 287aa2b

Browse files
committed
Fix value of last
1 parent 10461b6 commit 287aa2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/boost/decimal/cstdio.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ inline auto snprintf_impl(char* buffer, const std::size_t buf_size, const char*
228228
detail::make_uppercase(buffer, r.ptr);
229229
}
230230
*r.ptr = '\0';
231-
const auto offset {convert_pointer_pair_to_local_locale(buffer, buffer + buf_size)};
231+
const auto offset {convert_pointer_pair_to_local_locale(buffer, buffer + buf_size - byte_count)};
232232

233233
buffer = r.ptr + (offset == -1 ? 0 : offset);
234234

0 commit comments

Comments
 (0)