From 46e3a70b399d01f8eac5791dffc7c1fab8de2239 Mon Sep 17 00:00:00 2001 From: Jukka Aho Date: Thu, 5 Jan 2017 09:41:34 +0200 Subject: [PATCH] fixed deprecation warning in aster_read_nodes --- src/preprocess_aster_reader.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/preprocess_aster_reader.jl b/src/preprocess_aster_reader.jl index 4046aba..69bdf5c 100644 --- a/src/preprocess_aster_reader.jl +++ b/src/preprocess_aster_reader.jl @@ -275,7 +275,7 @@ function aster_read_nodes(rmed::RMEDFile) nnodes = length(node_names) dim = round(Int, length(node_coords)/nnodes) node_coords = reshape(node_coords, nnodes, dim)' - stripper(node_name) = strip(ascii(pointer(convert(Vector{UInt8}, node_name)))) + stripper(node_name) = strip(ascii(unsafe_string(pointer(convert(Vector{UInt8}, node_name))))) node_names = map(stripper, node_names) # INFO: quite safe assumption is that id is in node name, i.e. N1 => 1, N123 => 123 node_id(node_name) = parse(matchall(r"\d+", node_name)[1])