Skip to content

Commit

Permalink
repair improper typecast in C snippet templates
Browse files Browse the repository at this point in the history
  • Loading branch information
kingaa committed Sep 6, 2024
1 parent 7238605 commit 1f5231e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: pomp
Type: Package
Title: Statistical Inference for Partially Observed Markov Processes
Version: 5.10.0.2
Date: 2024-09-05
Version: 5.10.0.3
Date: 2024-09-06
Authors@R: c(person(given=c("Aaron","A."),family="King",role=c("aut","cre"),email="[email protected]",comment=c(ORCID="0000-0001-6159-3207")),
person(given=c("Edward","L."),family="Ionides",role="aut",comment=c(ORCID="0000-0002-4190-0174")) ,
person(given="Carles",family="Bretó",role="aut",comment=c(ORCID="0000-0003-4695-4902")),
Expand Down
2 changes: 1 addition & 1 deletion R/templates.R
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ static periodic_bspline_basis_eval_deriv_t *__pomp_periodic_bspline_basis_eval_d
static get_userdata_int_t *__pomp_get_userdata_int;
#define get_userdata_int(X) (__pomp_get_userdata_int(X))}",
reg=r"{
__pomp_get_userdata_int = (get_userdata_t *) R_GetCCallable("pomp","get_userdata_int");}"
__pomp_get_userdata_int = (get_userdata_int_t *) R_GetCCallable("pomp","get_userdata_int");}"
),
get_userdata_double=list(
trigger="get_userdata_double",
Expand Down
1 change: 0 additions & 1 deletion tests/gillespie.R
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ gsir |>
rate.fun=Csnippet("
double beta;
int nbasis = *get_userdata_int(\"nbasis\");
int k;
switch (j) {
case 1: // birth
Expand Down
1 change: 0 additions & 1 deletion tests/gillespie.Rout.save
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ Type 'q()' to quit R.
+ rate.fun=Csnippet("
+ double beta;
+ int nbasis = *get_userdata_int(\"nbasis\");
+ int k;
+
+ switch (j) {
+ case 1: // birth
Expand Down

0 comments on commit 1f5231e

Please sign in to comment.