Remove undefined behavior reading 32-bit variables as 64-bit in printf formatting in test_atomic_cxx. Fixes the test on OSX.
Merge pull request #2290 from juj/fix_test_atomic_cxx

fix_test_atomic_cxx