diff --git a/ChangeLog b/ChangeLog index 3af7749..614f843 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2023-11-27 Wenjie Wang + + * Fixed CRAN warning: "GibbsSampler.h:91:27: warning: format ‘%d’ + expects argument of type ‘int’, but argument 2 has type ‘Size’" + + * Changed package version to 0.4-6 + 2023-08-19 Wenjie Wang * Fixed broken roxygen2 documentation. diff --git a/src/GibbsSampler.h b/src/GibbsSampler.h index 89cbdbf..3f7e2d2 100644 --- a/src/GibbsSampler.h +++ b/src/GibbsSampler.h @@ -88,7 +88,7 @@ void GibbsSampler::runGibbs(const Prior_type& prior, if (trace && (i % nReport == 0)) { //std::cout << "Iteration(" << i << ")" << std::endl; - Rprintf("Iteration(%d)\n", i); + Rprintf("Iteration(%u)\n", static_cast(i)); } pm_->gibbsKernel(prior, par);