ports/math/octave-forge-signal/files/patch-medfilt1.cc
Stephen Montgomery-Smith 4c832cf932 - Update octave-forge-signal to 1.4.0.
- Unbreak octave-forge-signal.
- Bump portrevision for octave-forge.
- Note: renamed truncate to truncate2 in a patch file because of a conflict
  with sys/types.h.
2018-05-07 14:07:58 +00:00

20 lines
799 B
C++

--- medfilt1.cc.orig 2018-05-07 14:01:24 UTC
+++ medfilt1.cc
@@ -37,7 +37,7 @@ Created: 2015-12-13
#include "ov.h"
enum nan_handling { include_nan, omit_nan };
-enum pad_type { zero_pad, truncate };
+enum pad_type { zero_pad, truncate2 };
// Keep a sorted sliding window of values.
// There is no error checking, to keep things fast.
@@ -323,7 +323,7 @@ to bring them up to size @var{n}.\n\
if (! strcasecmp (s.c_str (), "omitnan"))
nan_flag = omit_nan;
else if (! strcasecmp (s.c_str (), "truncate"))
- padding = truncate;
+ padding = truncate2;
else if (strcasecmp (s.c_str (), "includenan")
&& strcasecmp (s.c_str (), "zeropad")) // the defaults
error ("medfilt1: Invalid NAN_FLAG or PADDING value '%s'", s.c_str ());