Compare commits

..

2 Commits

Author SHA1 Message Date
Gennaro Prota
c915934529 Fix four occorrences of a typo ("arugment") in the Javadoc comments 2025-11-14 12:03:00 +01:00
Gennaro Prota
10b5491104 Avoid two C4244 warnings from MSVC 2025-11-05 11:30:41 +01:00

View File

@@ -775,7 +775,7 @@ to_static_wstring_float_impl(double value) noexcept
// circuit evaluation will ensure that the
// second operand is not evaluated on conforming
// implementations.
long long num_written =
int num_written =
std::swprintf(buffer, N + 1, L"%f", value);
if (num_written < 0 ||
num_written > narrow)
@@ -834,7 +834,7 @@ to_static_wstring_float_impl(long double value) noexcept
// circuit evaluation will ensure that the
// second operand is not evaluated on conforming
// implementations.
long long num_written =
int num_written =
std::swprintf(buffer, N + 1, L"%Lf", value);
if (num_written < 0 ||
num_written > narrow)
@@ -3733,8 +3733,8 @@ public:
`{data() + pos, std::min(count, size() - pos))`.
@param pos The index to being the substring at. The
default arugment for this parameter is `0`.
@param count The length of the substring. The default arugment
default argument for this parameter is `0`.
@param count The length of the substring. The default argument
for this parameter is @ref npos.
@throw std::out_of_range `pos > size()`
@@ -3764,8 +3764,8 @@ public:
to `{data() + pos, std::min(count, size() - pos))`.
@param pos The index to being the substring at. The
default arugment for this parameter is `0`.
@param count The length of the substring. The default arugment
default argument for this parameter is `0`.
@param count The length of the substring. The default argument
for this parameter is @ref npos.
@throw std::out_of_range `pos > size()`