File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1590,9 +1590,10 @@ void test_sp_create_spline2_kernel_table(CuTest * tc){
15901590 int t = sp_timer_start ();
15911591 step = 1e-5 ;
15921592 int i = 0 ;
1593+ volatile real sample ;
15931594 /* I need double precision or the small step is gonna be washed in the numerical error */
15941595 for (double r2 = 0 ;r2 < 4 ;r2 += step ){
1595- real sample = 1 ;
1596+ sample = 1 ;
15961597 sample = i ;
15971598 i ++ ;
15981599 }
@@ -1603,7 +1604,7 @@ void test_sp_create_spline2_kernel_table(CuTest * tc){
16031604 i = 0 ;
16041605 /* I need double precision or the small step is gonna be washed in the numerical error */
16051606 for (double r2 = 0 ;r2 < 4 ;r2 += step ){
1606- real sample = sp_kernel_table_sample (k ,r2 );
1607+ sample = sp_kernel_table_sample (k ,r2 );
16071608 sample = i ;
16081609 i ++ ;
16091610 }
You can’t perform that action at this time.
0 commit comments