Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
  • Loading branch information
coatless committed Jul 18, 2023
1 parent ebd7470 commit 5e17e16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inst/include/pg_sampler_meat.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ inline T rpg_gamma(const T& shape_, const T& scale_, int trunc) {
// Initialize a similar result object
T result(n);

for(int i=0; i < n; ++i){
for(unsigned int i = 0; i < n; ++i){

#ifdef USE_R
if (i % 1000 == 0) R_CheckUserInterrupt();
Expand Down

0 comments on commit 5e17e16

Please sign in to comment.