Skip to content

Commit

Permalink
Attempt to resolve CRAN warning
Browse files Browse the repository at this point in the history
  • Loading branch information
wenjie2wang committed Nov 29, 2023
1 parent dd60db6 commit 7347684
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
2023-11-27 Wenjie Wang <wang@wwenjie.org>

* 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 <wang@wwenjie.org>

* Fixed broken roxygen2 documentation.
Expand Down
2 changes: 1 addition & 1 deletion src/GibbsSampler.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ void GibbsSampler<M>::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<unsigned int>(i));
}

pm_->gibbsKernel(prior, par);
Expand Down

0 comments on commit 7347684

Please sign in to comment.