3 ms·
And turn on the Undefined Behavior Sanitizer (http://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html http://clang.llvm.org/docs/UndefinedBehaviorSanitizer.h
by Kristine1975 11y ago
And turn on the Undefined Behavior Sanitizer (http://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html http://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html) with
-fsanitize=undefined
It would have caught this bug at run-time.