Răsfoiți Sursa

DynASM/ARM: Fix description shown for multi-element templates.

Mike Pall 11 ani în urmă
părinte
comite
3f2e4ec699
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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.