* [#15019](http://bugzilla.scilab.org/show_bug.cgi?id=15019): Add 'csci6' in the calling of ilib_build in 'Getting started with API_Scilab' help page.
* [#15023](http://bugzilla.scilab.org/show_bug.cgi?id=15023): `clf()` wrongly reset `figure_id`.
* [#15024](http://bugzilla.scilab.org/show_bug.cgi?id=15024): Xcos labels were not preserved at diagram compilation.
+* [#15037](http://bugzilla.scilab.org/show_bug.cgi?id=15037): the residu function may crash Scilab6.
* [#15039](http://bugzilla.scilab.org/show_bug.cgi?id=15039): Added demos to showcase Xcos' new graphical features
* [#15046](http://bugzilla.scilab.org/show_bug.cgi?id=15046): `call` couldn't mix inputs and outputs
* [#15052](http://bugzilla.scilab.org/show_bug.cgi?id=15052): `getpid` wasn't available anymore
int iErr = 0;
double v = 0;
- int iSize1 = piRank[0][i] + 1;
- int iSize2 = piRank[1][i] + 1;
- int iSize3 = piRank[2][i] + 1;
- C2F(residu)(pdblInR[0][i], &iSize1, pdblInR[1][i], &iSize2,
- pdblInR[2][i], &iSize3, &v, &dblEps, &iErr);
+ C2F(residu)(pdblInR[0][i], piRank[0]+i, pdblInR[1][i], piRank[1]+i,
+ pdblInR[2][i], piRank[2]+i, &v, &dblEps, &iErr);
if (iErr)
{
Scierror(78, _("%s: An error occured in '%s'.\n"), "residu", "residu");
--- /dev/null
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2017 - ESI-Group - Cedric Delamarre
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+//
+// <-- CLI SHELL MODE -->
+//
+// <-- Non-regression test for bug 14980 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=15037
+//
+// <-- Short Description -->
+// the residu function may crash Scilab
+a=1-%s^2;
+b=1+2*%s+3*%s^2;
+c=1-2*%s+3*%s^2;
+assert_checkequal(residu(a,b,c), 1/3);
--- /dev/null
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2017 - ESI-Group - Cedric Delamarre
+//
+// This file is distributed under the same license as the Scilab package.
+// =============================================================================
+//
+// <-- CLI SHELL MODE -->
+//
+// <-- Non-regression test for bug 14980 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=15037
+//
+// <-- Short Description -->
+// the residu function may crash Scilab
+
+a=1-%s^2;
+b=1+2*%s+3*%s^2;
+c=1-2*%s+3*%s^2;
+assert_checkequal(residu(a,b,c), 1/3);