Skip to content

Commit

Permalink
Allow AbstractString on sifdecoder
Browse files Browse the repository at this point in the history
  • Loading branch information
abelsiqueira committed Sep 13, 2016
1 parent 05c98e8 commit bf34dd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CUTEst.jl
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Optional arguments are passed directly to the SIF decoder.
Example:
`sifdecoder("DIXMAANJ", "-param", "M=30")`.
"""
function sifdecoder(name :: ASCIIString, args...; verbose :: Bool=false)
function sifdecoder(name :: AbstractString, args...; verbose :: Bool=false)
# TODO: Accept options to pass to sifdecoder.
pname, sif = splitext(name);
libname = "lib$pname";
Expand Down Expand Up @@ -105,7 +105,7 @@ function CUTEstModel(name :: AbstractString, args...; decode :: Bool=true, verbo
cutest_lib = Libdl.dlopen(libname,
Libdl.RTLD_NOW | Libdl.RTLD_DEEPBIND | Libdl.RTLD_GLOBAL)
else
sifdecoder(ascii(name), args..., verbose=verbose)
sifdecoder(name, args..., verbose=verbose)
end
io_err = Cint[0];
ccall(dlsym(cutest_lib, :fortran_open_), Void,
Expand Down

0 comments on commit bf34dd5

Please sign in to comment.