diff options
Diffstat (limited to 'testing/octave/abs.patch')
-rw-r--r-- | testing/octave/abs.patch | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/testing/octave/abs.patch b/testing/octave/abs.patch index e7059f3cc03..3b892f3b5a2 100644 --- a/testing/octave/abs.patch +++ b/testing/octave/abs.patch @@ -1,16 +1,6 @@ -diff -up octave-4.0.0/libinterp/corefcn/pr-output.cc.abs octave-4.0.0/libinterp/corefcn/pr-output.cc ---- octave-4.0.0/libinterp/corefcn/pr-output.cc.abs 2015-05-23 08:21:53.000000000 -0600 -+++ octave-4.0.0/libinterp/corefcn/pr-output.cc 2016-02-21 08:59:30.966291273 -0700 -@@ -21,7 +21,7 @@ along with Octave; see the file COPYING. - */ - - #ifdef HAVE_CONFIG_H --#include <config.h> -+#include "config.h" - #endif - - #include <cfloat> -@@ -3145,6 +3145,14 @@ PRINT_INT_SCALAR_INTERNAL (uint32_t) +--- octave-4.2.0/libinterp/corefcn/pr-output.cc.orig ++++ octave-4.2.0/libinterp/corefcn/pr-output.cc +@@ -3152,6 +3152,14 @@ PRINT_INT_SCALAR_INTERNAL (int64_t) PRINT_INT_SCALAR_INTERNAL (uint64_t) @@ -22,6 +12,6 @@ diff -up octave-4.0.0/libinterp/corefcn/pr-output.cc.abs octave-4.0.0/libinterp/ +inline signed char abs (signed char x) { return abs((int)x); } +inline short int abs (short int x) { return abs((int)x); } + - template <class T> + template <typename T> /* static */ inline void octave_print_internal_template (std::ostream& os, const intNDArray<T>& nda, |