diff options
author | Rickard Green <[email protected]> | 2010-11-18 10:36:51 +0100 |
---|---|---|
committer | Rickard Green <[email protected]> | 2010-11-18 10:36:51 +0100 |
commit | 6a566d3a6eca81ef7fc68ed48240af18fa05f83d (patch) | |
tree | 5a0d62b09d51e2989ae0fbd88f09f303ef3a2074 /erts/emulator | |
parent | ec2406e524a1c12648edfb7762d09597a84b409a (diff) | |
parent | 449f8cb91c0b65f83980a833d50d34111a8f038e (diff) | |
download | otp-6a566d3a6eca81ef7fc68ed48240af18fa05f83d.tar.gz otp-6a566d3a6eca81ef7fc68ed48240af18fa05f83d.tar.bz2 otp-6a566d3a6eca81ef7fc68ed48240af18fa05f83d.zip |
Merge branch 'rickard/tsd-get/OTP-8889' into dev
* rickard/tsd-get/OTP-8889:
Fix erl_drv_tsd_get() and enif_tsd_get()
Diffstat (limited to 'erts/emulator')
-rw-r--r-- | erts/emulator/beam/erl_drv_thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/erl_drv_thread.c b/erts/emulator/beam/erl_drv_thread.c index d42820ddf3..17b08a71d4 100644 --- a/erts/emulator/beam/erl_drv_thread.c +++ b/erts/emulator/beam/erl_drv_thread.c @@ -528,7 +528,7 @@ erl_drv_tsd_get(ErlDrvTSDKey key) if (!dtid) return NULL; #endif - if (ERL_DRV_TSD_LEN__ < key) + if (ERL_DRV_TSD_LEN__ <= key) return NULL; return ERL_DRV_TSD__[key]; } |