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 committed Jan 19, 2017
1 parent f575e6d commit b925432
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions util/perf_count.cc
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 b925432

Please sign in to comment.