From e36eac94dd517bb69d3e5782516ee58942451991 Mon Sep 17 00:00:00 2001 From: Siddhesh Wani Date: Thu, 4 May 2017 16:15:18 +0530 Subject: Basic functions and image processing working with MSVC on windows x64 --- src/c/elementaryFunctions/linspace/dlinspacea.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/c/elementaryFunctions/linspace') diff --git a/src/c/elementaryFunctions/linspace/dlinspacea.c b/src/c/elementaryFunctions/linspace/dlinspacea.c index cb60f9e..e23db2f 100644 --- a/src/c/elementaryFunctions/linspace/dlinspacea.c +++ b/src/c/elementaryFunctions/linspace/dlinspacea.c @@ -9,13 +9,15 @@ Organization: FOSSEE, IIT Bombay Email: toolbox@scilab.in */ - +#include #include "linspace.h" + void dlinspacea(double *low_limit,int _row,double *up_limit,double range_num,double *out) { int i,j,k; double temp; - float step_iterate[_row]; /* for each row the spacing between two values is different.*/ + double *step_iterate; /* for each row the spacing between two values is different.*/ + step_iterate = (double*) malloc((double)_row*sizeof(double)); for(i=0;i<_row;i++) { -- cgit