Skip to content

Commit

Permalink
Merge pull request #1218 from metrumresearchgroup/fix/int-type
Browse files Browse the repository at this point in the history
Fix compiler warning - comparison of signed and unsigned integers
  • Loading branch information
kylebaron authored Jul 25, 2024
2 parents 6ff8a9a + 096fb7f commit 2eabaa7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion inst/include/datarecord.h
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ struct CompRec {
}
};

void insert_record(reclist& thisi, const int start, rec_ptr& rec,
void insert_record(reclist& thisi, const size_t start, rec_ptr& rec,
const bool put_ev_first);

#endif
4 changes: 2 additions & 2 deletions src/datarecord.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -592,10 +592,10 @@ void datarecord::schedule(reclist& thisi, double maxtime,
* infusion end.
*
*/
void insert_record(reclist& thisi, const int start, rec_ptr& rec,
void insert_record(reclist& thisi, const size_t start, rec_ptr& rec,
const bool put_ev_first) {
double time = rec->time();
int i = start;
size_t i = start;
if(put_ev_first) {
for(i = start + 1; i < thisi.size(); ++i) {
if(thisi[i]->time() >= time) {
Expand Down

0 comments on commit 2eabaa7

Please sign in to comment.