Skip to content

Commit df1af1f

Browse files
committed
eliminate extra local variables in macro
1 parent d683bd9 commit df1af1f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/libSparse/wrappers.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,7 @@ macro generateDemangled(jlName, cName, param, retType, jlArgTypes...)
248248
Expr(:(::), esc(Symbol("arg$i")), T)
249249
end
250250
local jlCall = Expr(:(::), Expr(:call, esc(jlName), jlArgExprs...), retTypeWParam)
251-
# assemble ccall body, then feed into macro.
252-
local cArgExprs = [Expr(:(::), esc(Symbol("arg$i")), T) for (i,T) in enumerate(cArgTypesWParams)]
251+
local cArgExprs = [Expr(:(::), Symbol("arg$i"), T) for (i,T) in enumerate(cArgTypesWParams)]
253252
local LIBSPARSE = "/System/Library/Frameworks/Accelerate.framework/Versions"*
254253
"/A/Frameworks/vecLib.framework/libSparse.dylib"
255254
local funcAndLibrary = Expr(:(.), LIBSPARSE, esc(cName))

0 commit comments

Comments
 (0)