aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoit Germain <b n t DOT g e r m a i n AT g m a i l DOT c o m>2017-08-03 11:52:14 +0200
committerBenoit Germain <b n t DOT g e r m a i n AT g m a i l DOT c o m>2017-08-03 11:52:14 +0200
commit95ca27b5658c9b4da4ec67f6e922ff370eae05e5 (patch)
treeb96a09d3d5be76d9d435c5aa4415bb133303fa87
parent5d3c8cadef5939ea383f9dd9a7c992b27b40eaba (diff)
downloadlanes-95ca27b5658c9b4da4ec67f6e922ff370eae05e5.tar.gz
lanes-95ca27b5658c9b4da4ec67f6e922ff370eae05e5.tar.bz2
lanes-95ca27b5658c9b4da4ec67f6e922ff370eae05e5.zip
Fix error when using strict checking
-rw-r--r--src/lanes.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lanes.lua b/src/lanes.lua
index 35071ae..09603b3 100644
--- a/src/lanes.lua
+++ b/src/lanes.lua
@@ -77,7 +77,7 @@ lanes.configure = function( settings_)
77 demote_full_userdata = nil, 77 demote_full_userdata = nil,
78 verbose_errors = false, 78 verbose_errors = false,
79 -- LuaJIT provides a thread-unsafe allocator by default, so we need to protect it when used in parallel lanes 79 -- LuaJIT provides a thread-unsafe allocator by default, so we need to protect it when used in parallel lanes
80 protect_allocator = (jit and jit.version) and true or false 80 protect_allocator = (package.loaded.jit and jit.version) and true or false
81 } 81 }
82 local boolean_param_checker = function( val_) 82 local boolean_param_checker = function( val_)
83 -- non-'boolean-false' should be 'boolean-true' or nil 83 -- non-'boolean-false' should be 'boolean-true' or nil