aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2010-11-18 10:36:51 +0100
committerRickard Green <[email protected]>2010-11-18 10:36:51 +0100
commit6a566d3a6eca81ef7fc68ed48240af18fa05f83d (patch)
tree5a0d62b09d51e2989ae0fbd88f09f303ef3a2074 /erts/emulator
parentec2406e524a1c12648edfb7762d09597a84b409a (diff)
parent449f8cb91c0b65f83980a833d50d34111a8f038e (diff)
downloadotp-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.c2
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];
}