Skip to content

Commit

Permalink
fix some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
MLopez-Ibanez committed Nov 27, 2023
1 parent 66b8529 commit 01c75bc
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ jobs:
run-only: true

coverage:
needs: rchk
needs: R-CMD-check
name: Coverage ${{ matrix.config.os }} (${{ matrix.config.r }})
runs-on: ${{ matrix.config.os }}
strategy:
Expand Down
2 changes: 1 addition & 1 deletion src/Reaf.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ compute_eaf_helper (SEXP DATA, int nobj, SEXP CUMSIZES, int nruns,
DEBUG2(
Rprintf ("eaf computed\n");
for (k = 0; k < nlevels; k++) {
Rprintf ("eaf[%d] = %zu\n", k, eaf[k]->size);
Rprintf ("eaf[%d] = %lu\n", k, (unsigned long) eaf[k]->size);
});

return eaf;
Expand Down
4 changes: 2 additions & 2 deletions src/eaf/eaf.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
#define EAF_MALLOC(WHAT, NMEMB, TYPE) \
do { WHAT = malloc (NMEMB * sizeof(TYPE)); \
if (!WHAT) { \
Rf_error(__FILE__ ": %s = malloc (%u * %zu) failed", \
#WHAT, (unsigned int) NMEMB, sizeof(TYPE)); } \
Rf_error(__FILE__ ": %s = malloc (%u * %lu) failed", \
#WHAT, (unsigned int) NMEMB, (unsigned long) sizeof(TYPE)); } \
} while (0)
#else
#define EAF_MALLOC(WHAT, NMEMB, TYPE) \
Expand Down
2 changes: 1 addition & 1 deletion src/eaf/svn_version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
290
291
2 changes: 1 addition & 1 deletion src/mo-tools/svn_version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
174
175
2 changes: 1 addition & 1 deletion src/mo-tools/whv.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ rect_weighted_hv2d(double *data, size_t n, double * rectangles,
print_point(pk, p, r, rect); \
} while(0)

DEBUG2_PRINT("n = %zu\trectangles = %zu\n", n, rectangles_nrow);
DEBUG2_PRINT("n = %lu\trectangles = %lu\n", (unsigned long)n, (unsigned long)rectangles_nrow);
if (rectangles_nrow == 0 || n == 0) return 0;

const int nobj = 2;
Expand Down

0 comments on commit 01c75bc

Please sign in to comment.