Explorar o código

Merge branch 'master' into v2.1

Mike Pall %!s(int64=10) %!d(string=hai) anos
pai
achega
1fc9cd07c3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      dynasm/dasm_arm.lua

+ 1 - 1
dynasm/dasm_arm.lua

@@ -923,7 +923,7 @@ local function parse_template(params, template, nparams, pos)
 end
 
 map_op[".template__"] = function(params, template, nparams)
-  if not params then return sub(template, 9) end
+  if not params then return template:gsub("%x%x%x%x%x%x%x%x", "") end
 
   -- Limit number of section buffer positions used by a single dasm_put().
   -- A single opcode needs a maximum of 3 positions.