summaryrefslogtreecommitdiff
path: root/libc/stdio/stdio.cpp
diff options
context:
space:
mode:
authorAdam Barth <abarth@google.com>2021-01-07 21:29:18 +0000
committerAdam Barth <abarth@google.com>2021-01-08 01:21:52 +0000
commit651f1fa509f4d113fef1424ae99bca16aac01b5f (patch)
treeb474af881f127fd9156a618e01ee3ed633e72da1 /libc/stdio/stdio.cpp
parente09fc24a94c1a196b8930f8f26c6f5f8c1a47d06 (diff)
Make the atomic load explicit
Technically, std::atomic does not have an operator(). Previously, this code was relying on an implicit behavior of our C++ standard library in order to compile. When compiling this code against a different C++ standard library, I encountered a compiler error on these lines. This CL makes the std::atomic load() operation explicit, makes it clearer what this code is actually doing and makes it conform better to the C++ standard library spec rather than a particular implmentation. Change-Id: I7f255dffc0a3d8e07c973c18e9ba4098c4b5843e
Diffstat (limited to 'libc/stdio/stdio.cpp')
0 files changed, 0 insertions, 0 deletions