Skip to content

Commit 6cb8c49

Browse files
committed
temp
1 parent c40fe04 commit 6cb8c49

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

include/boost/json/detail/sse2.hpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,11 @@ inline uint64_t parse_unsigned( uint64_t r, char const * p, std::size_t n ) noex
328328
r = r * 10 + p[1] - '0';
329329
p += 2;
330330
}
331+
#if BOOST_JSON_ARCH == 64
331332
if( n & 4 )
333+
#else
334+
while( p != e )
335+
#endif
332336
{
333337
uint32_t v;
334338
std::memcpy( &v, p, 4 );
@@ -340,6 +344,7 @@ inline uint64_t parse_unsigned( uint64_t r, char const * p, std::size_t n ) noex
340344
p += 4;
341345
}
342346

347+
#if BOOST_JSON_ARCH == 64
343348
while( p != e )
344349
{
345350
uint64_t v;
@@ -352,6 +357,7 @@ inline uint64_t parse_unsigned( uint64_t r, char const * p, std::size_t n ) noex
352357
r = r * 100000000 + v;
353358
p += 8;
354359
}
360+
#endif
355361

356362
return r;
357363
}

0 commit comments

Comments
 (0)