datevec fails on large vectors
Reported by David Chèze (@davcheze)
BUG DESCRIPTION:
----------------
WIN7 64bits
On scilab 6.0 beta 2 _ 64bits, datevec fails to convert in matrix of fields of date and time quite a large vectors of datenum, see below
While manipulating smaller vectors doesn't lead to failure , 100000 values are ok.
Pb with size of auto allocated integers ? for 64 bits windows platform?
No issue on scilab 5.5.1_64bits provided I reserve a sufficient stack size.
ERROR LOG:
----------
--> horodeb= datenum(2016,7,1,0,0,0);
--> horofin= datenum(2016,12,31,23,59,59);
--> horoj= [horodeb:1/1440:horofin]' ;
--> horoj_clair= zeros(size(horoj,1),6);
--> horoj_clair= datevec(horoj);
at line 64 of function datevec ( C:\Users\dc227480\AppData\Local\SCILAB~2.0-B\modules\time\macros\datevec.sci line 81 )
Index invalide.
--> horoj_clair(1:100000,:)= datevec(horoj(1:100000));
--> horoj_clair(100001:264960,:)= datevec(horoj(100001:264960));
at line 64 of function datevec ( C:\Users\dc227480\AppData\Local\SCILAB~2.0-B\modules\time\macros\datevec.sci line 81 )
Index invalide.
HOW TO REPRODUCE THE BUG:
-------------------------
OTHER INFORMATION:
------------------