Skip to content

Commit 1678a9b

Browse files
committed
attempt to fix the C stack error in RStudio
1 parent 49702d9 commit 1678a9b

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Package: HIBAG
22
Type: Package
33
Title: HLA Genotype Imputation with Attribute Bagging
4-
Version: 1.33.2
5-
Date: 2022-08-21
4+
Version: 1.33.3
5+
Date: 2022-10-27
66
Depends: R (>= 3.2.0)
77
Imports: methods, RcppParallel
88
Suggests: parallel, ggplot2, reshape2, gdsfmt, SNPRelate, SeqArray, knitr,

NEWS

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
CHANGES IN VERSION 1.33.2
1+
CHANGES IN VERSION 1.34.0
22
-------------------------
33

44
o fix the compiler issue on Mac M1 chip
55

6+
o fix the C stack error in RStudio
7+
68

79
CHANGES IN VERSION 1.32.0
810
-------------------------

src/HIBAG.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ static void model_free(SEXP ptr_obj)
467467
static SEXP new_model_id(int id, CAttrBag_Model *mod_ptr)
468468
{
469469
SEXP ans = PROTECT(ScalarInteger(id));
470-
SEXP ptr = PROTECT(R_MakeExternalPtr(mod_ptr, R_NilValue, ans));
470+
SEXP ptr = PROTECT(R_MakeExternalPtr(mod_ptr, R_NilValue, R_NilValue));
471471
R_RegisterCFinalizerEx(ptr, model_free, (Rboolean)TRUE);
472472
Rf_setAttrib(ans, install("handle_ptr"), ptr);
473473
UNPROTECT(2);

0 commit comments

Comments
 (0)