Skip to content

Commit f66d277

Browse files
committed
Fixed issues found by PVS-Studio
1 parent 40619c0 commit f66d277

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

include/fast_float/ascii_number.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ read_chars_to_unsigned(UC const *chars) noexcept {
6969

7070
#ifdef FASTFLOAT_SSE2
7171

72-
fastfloat_really_inline uint64_t simd_read8_to_u64(__m128i const &data) {
72+
fastfloat_really_inline uint64_t simd_read8_to_u64(__m128i const data) {
7373
// _mm_packus_epi16 is SSE2+, converts 8×u16 → 8×u8
7474
__m128i const packed = _mm_packus_epi16(data, data);
7575
#ifdef FASTFLOAT_64BIT
@@ -86,7 +86,7 @@ fastfloat_really_inline uint64_t simd_read8_to_u64(char16_t const *chars) {
8686
FASTFLOAT_SIMD_DISABLE_WARNINGS
8787
// unaligned SIMD instruction -> all fine.
8888
return simd_read8_to_u64(
89-
_mm_loadu_si128(reinterpret_cast<__m128i const *>(chars)));
89+
_mm_loadu_si128(reinterpret_cast<__m128i const *>(chars))); //-V1032
9090
FASTFLOAT_SIMD_RESTORE_WARNINGS
9191
}
9292

@@ -175,7 +175,7 @@ simd_parse_if_eight_digits_unrolled(char16_t const *chars,
175175
// Load 8 UTF-16 characters (16 bytes)
176176
// unaligned SIMD instruction -> all fine.
177177
__m128i const data =
178-
_mm_loadu_si128(reinterpret_cast<__m128i const *>(chars));
178+
_mm_loadu_si128(reinterpret_cast<__m128i const *>(chars)); //-V1032
179179
FASTFLOAT_SIMD_RESTORE_WARNINGS
180180

181181
// Branchless "are all digits?" trick from Lemire:

0 commit comments

Comments
 (0)