Ignore:
Timestamp:
Nov 30, 2011 2:59:16 PM (13 years ago)
Author:
Mathieu Doucet <doucetm@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
c25f1fa
Parents:
36cbbe74
Message:

Re #5 fixing onion compilation on MSVC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansmodels/src/sans/models/c_extensions/onion.c

    r36cbbe74 ra807ffd  
    2020  double pi; 
    2121  double r0 = 0.0; 
    22  
    23  
    24   double sld_out[n+2]; 
    25   double slope[n+2]; 
    26   double sld_in[n+2]; 
    27   double thick[n+2]; 
    28   double A[n+2]; 
    29   int fun_type[n+2]; 
     22  const array_size = n+2; 
     23 
     24  double sld_out[array_size]; 
     25  double slope[array_size]; 
     26  double sld_in[array_size]; 
     27  double thick[array_size]; 
     28  double A[array_size]; 
     29  int fun_type[array_size]; 
    3030 
    3131 
Note: See TracChangeset for help on using the changeset viewer.