summaryrefslogtreecommitdiff
path: root/math/freemat/files/patch-libs_libMatC_CArray.cpp
blob: cd43f643358ba060234ece043304408e221f1fff (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- libs/libMatC/CArray.cpp.orig	2018-06-22 09:05:35 UTC
+++ libs/libMatC/CArray.cpp
@@ -534,7 +534,7 @@ void* carray_get_aa(void* interp, void* arg, void* rnd
 extern "C" EXPORT
 double carray_get_ss(void* interp, void* arg, double row, double col, bool *flag)
 {
-  if (*flag) return NULL;
+  if (*flag) return 0.0L;
   try
     {
       CArray *cp = cast(arg);
@@ -569,7 +569,7 @@ double carray_get_ss(void* interp, void* arg, double r
 extern "C" EXPORT
 double carray_get_s(void* interp, void* arg, double row, bool *flag)
 {
-  if (*flag) return NULL;
+  if (*flag) return 0.0L;
   try
     {
       CArray *cp = cast(arg);