This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/protobuf-2.5.0/src/google/protobuf/stubs/once.cc b/protobuf-2.5.0/src/google/protobuf/stubs/once.cc | |
index 1e24b85..e9056ac 100644 | |
--- a/protobuf-2.5.0/src/google/protobuf/stubs/once.cc | |
+++ b/protobuf-2.5.0/src/google/protobuf/stubs/once.cc | |
@@ -63,7 +63,7 @@ void SchedYield() { | |
} // namespace | |
void GoogleOnceInitImpl(ProtobufOnceType* once, Closure* closure) { | |
- internal::AtomicWord state = internal::Acquire_Load(once); | |
+ internal::AtomicWord state = internal::Acquire_Load((volatile internal::Atomic32 *)once); |