Skip to content

Commit 9ff1624

Browse files
committed
small fix.
1 parent 325c723 commit 9ff1624

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/fast_float/ascii_number.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ fastfloat_really_inline FASTFLOAT_CONSTEXPR20 uint64_t
5353
read8_to_u64(UC const *chars) {
5454
if (cpp20_and_in_constexpr() || !std::is_same<UC, char>::value) {
5555
uint64_t val = 0;
56-
for (uint_fast8_t i = 0; i++ != 8;) {
56+
for (uint_fast8_t i = 0; i != 8; ++i) {
5757
val |= uint64_t(uint8_t(*chars)) << (i * 8);
5858
++chars;
5959
}
@@ -259,7 +259,7 @@ template <typename UC> struct parsed_number_string_t {
259259
// contains the range of the significant digits
260260
span<UC const> integer{}; // non-nullable
261261
span<UC const> fraction{}; // nullable
262-
UC const *lastmatch{nullptr};
262+
UC const *lastmatch;
263263
#ifndef FASTFLOAT_ONLY_POSITIVE_C_NUMBER_WO_INF_NAN
264264
bool negative{false};
265265
#endif

0 commit comments

Comments
 (0)