mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
dtoa.c: make thread-safe by using atomic CAS
This commit is contained in:
parent
34d02631e7
commit
2adbf01ae1
Notes:
git
2021-01-10 20:00:20 +09:00
3 changed files with 57 additions and 21 deletions
1
util.c
1
util.c
|
@ -29,6 +29,7 @@
|
|||
#include "internal/sanitizers.h"
|
||||
#include "internal/util.h"
|
||||
#include "ruby/util.h"
|
||||
#include "ruby_atomic.h"
|
||||
|
||||
const char ruby_hexdigits[] = "0123456789abcdef0123456789ABCDEF";
|
||||
#define hexdigit ruby_hexdigits
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue