diff options
| author | Brian Anderson <banderson@mozilla.com> | 2013-05-06 18:53:45 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2013-05-14 14:52:06 -0700 |
| commit | 101aaa38616411b7fcef0599a3e514cea7df3a87 (patch) | |
| tree | f78a190eff9f1fad5eb6a48fe342edc09564375c /src/rt/rust_builtin.cpp | |
| parent | d234cf7e440db0abbf867997c45d993a542ee640 (diff) | |
| download | rust-101aaa38616411b7fcef0599a3e514cea7df3a87.tar.gz rust-101aaa38616411b7fcef0599a3e514cea7df3a87.zip | |
core::rt: 0 is a valid TLS key
Diffstat (limited to 'src/rt/rust_builtin.cpp')
| -rw-r--r-- | src/rt/rust_builtin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp index 90328928122..39a6f5bfd1b 100644 --- a/src/rt/rust_builtin.cpp +++ b/src/rt/rust_builtin.cpp @@ -830,9 +830,9 @@ rust_get_rt_env() { } #ifndef _WIN32 -pthread_key_t sched_key; +pthread_key_t sched_key = -1; #else -DWORD sched_key; +DWORD sched_key = -1; #endif extern "C" void* |
