Skip to content

Commit

Permalink
correct code in the 32bit path to correctly compile
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewVon authored and martinsumner committed Aug 7, 2019
1 parent f7bafa1 commit 14c57fe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions util/perf_count.cc
Original file line number Diff line number Diff line change
Expand Up @@ -360,11 +360,11 @@ PerformanceCounters * gPerfCounters(&LocalStartupCounters);
uint32_t ret_32, * ptr_32;

ptr_32=(uint32_t *)&val_ptr;
ret_32=inc_and_fetch(ptr_32, 1);
ret_32=inc_and_fetch(ptr_32);
if (0==ret_32)
{
++ptr_32;
inc_and_fetch(ptr_32, 1);
inc_and_fetch(ptr_32);
} // if
#endif
ret_val=*val_ptr;
Expand Down Expand Up @@ -432,11 +432,11 @@ PerformanceCounters * gPerfCounters(&LocalStartupCounters);

ptr_32=(uint32_t *)&val_ptr;
old_32=*ptr_32;
ret_32=add_and_fetch(ptr_32, Amount);
ret_32=add_and_fetch(ptr_32, (uint32_t)Amount);
if (ret_32<old_32)
{
++ptr_32;
add_and_fetch(ptr_32, 1);
add_and_fetch(ptr_32, (uint32_t)1);
} // if

ret_val=*val_ptr;
Expand Down

0 comments on commit 14c57fe

Please sign in to comment.