metrumresearchgroup / mrgsolve

Simulate from ODE-based population PK/PD and QSP models in R
https://mrgsolve.org
GNU General Public License v2.0
131 stars 36 forks source link

SIgn compare #1217

Closed kylebaron closed 2 months ago

kylebaron commented 4 months ago

Discovered when running check on winbuilder preparing for 1.5.0 release.

datarecord.cpp: In function 'void insert_record(reclist&, int, rec_ptr&, bool)':
datarecord.cpp:600:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::deque<std::shared_ptr<datarecord> >::size_type' {aka 'long long unsigned int'} [-Wsign-compare]
  600 |     for(i = start + 1; i < thisi.size(); ++i) {
      |                        ~~^~~~~~~~~~~~~~
datarecord.cpp:606:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::deque<std::shared_ptr<datarecord> >::size_type' {aka 'long long unsigned int'} [-Wsign-compare]
  606 |     for(i = start + 1; i < thisi.size(); ++i) {
      |                        ~~^~~~~~~~~~~~~~