Changeset aadec17 in sasmodels


Ignore:
Timestamp:
Feb 7, 2018 5:49:25 PM (7 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
a09d55d
Parents:
e526a9d
Message:

opencl: remove compiler warning for Radeon

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/kernel_iq.c

    r924a119 raadec17  
    9393// Compute the magnetic sld 
    9494static double mag_sld( 
    95   const int xs, // 0=dd, 1=du real, 2=ud real, 3=uu, 4=du imag, 5=up imag 
     95  const unsigned int xs, // 0=dd, 1=du real, 2=ud real, 3=uu, 4=du imag, 5=up imag 
    9696  const double qx, const double qy, 
    9797  const double px, const double py, 
     
    103103    const double perp = qy*mx - qx*my; 
    104104    switch (xs) { 
     105      default: // keep compiler happy; condition ensures xs in [0,1,2,3] 
    105106      case 0: // uu => sld - D M_perpx 
    106107          return sld - px*perp; 
     
    659660 
    660661            // loop over uu, ud real, du real, dd, ud imag, du imag 
    661             for (int xs=0; xs<6; xs++) { 
     662            for (unsigned int xs=0; xs<6; xs++) { 
    662663              const double xs_weight = spins[xs]; 
    663664              if (xs_weight > 1.e-8) { 
Note: See TracChangeset for help on using the changeset viewer.