# HG changeset patch # User John W. Eaton # Date 1387314155 21600 # Node ID f8b7e8483b88c1ef14bd0bfc399a833a57d28b12 # Parent 7721e78b1337a292a9900326d1313fe2d0f1d302 avoid possible num-to-str warnings from strread.m * strread.m: Use "\n" instead of 10 and " " instead of 32 in comparisions with character strings. diff -r 7721e78b1337 -r f8b7e8483b88 scripts/io/strread.m --- a/scripts/io/strread.m Sun Dec 15 19:42:24 2013 -0800 +++ b/scripts/io/strread.m Tue Dec 17 15:02:35 2013 -0600 @@ -396,7 +396,7 @@ if (! isempty (white_spaces)) ## Check if trailing "\n" might signal padding output arrays to equal size ## before it is trimmed away below - if ((str(end) == 10) && (nargout > 1)) + if (str(end) == "\n" && nargout > 1) pad_out = 1; endif ## Condense all repeated whitespace into one single space @@ -404,7 +404,7 @@ rxp_wsp = sprintf ("[%s]+", white_spaces); str = regexprep (str, rxp_wsp, ' '); ## Remove possible leading space at string - if (str(1) == 32) + if (str(1) == " ") str = str(2:end); endif ## Check for single delimiter followed/preceded by whitespace