Ignore:
Timestamp:
Nov 21, 2011 4:52:25 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:
1810613
Parents:
afea8fe
Message:

Re #4 Fixed warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansmodels/src/sans/models/c_models/fuzzysphere.cpp

    rc724ccd r34c2649  
    6868 
    6969        // Loop over radius weight points 
    70         for(int i=0; i<weights_radius.size(); i++) { 
     70        for(size_t i=0; i<weights_radius.size(); i++) { 
    7171                dp[1] = weights_radius[i].value; 
    7272                // Loop over fuzziness weight points 
    73                 for(int j=0; j<weights_fuzziness.size(); j++) { 
     73                for(size_t j=0; j<weights_fuzziness.size(); j++) { 
    7474                        dp[2] = weights_fuzziness[j].value; 
    7575 
     
    119119 */ 
    120120double FuzzySphereModel :: calculate_ER() { 
    121         FuzzySphereParameters dp; 
    122         dp.scale = scale(); 
    123         dp.radius = radius(); 
    124         dp.fuzziness = fuzziness(); 
    125         dp.sldSph = sldSph(); 
    126         dp.sldSolv = sldSolv(); 
    127         dp.background = background(); 
    128121        double rad_out = 0.0; 
    129122 
     
    137130        radius.get_weights(weights_radius); 
    138131        // Loop over radius weight points to average the radius value 
    139         for(int i=0; i<weights_radius.size(); i++) { 
     132        for(size_t i=0; i<weights_radius.size(); i++) { 
    140133                sum += weights_radius[i].weight 
    141134                        * weights_radius[i].value; 
Note: See TracChangeset for help on using the changeset viewer.