소스 검색

Merge branch 'master' into v2.1

Mike Pall 10 년 전
부모
커밋
1fc9cd07c3
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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.