We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f432b42 commit d248a8fCopy full SHA for d248a8f
selectiveInference/src/debias.c
@@ -69,17 +69,20 @@ int update_ever_active(int coord,
69
active_var = (*ever_active_ptr_tmp);
70
if (active_var == coord) {
71
72
- // Add it to the active set and increment the
73
- // number of active variables
74
-
75
- ever_active_ptr_tmp = ((int *) ever_active_ptr + *nactive_ptr);
76
- *ever_active_ptr_tmp = coord;
77
- *nactive_ptr += 1;
78
79
return(1);
80
}
81
82
+ // If we have not returned yet, this variable
+ // was not in ever_active
+
+ // Add it to the active set and increment the
+ // number of active variables
+ ever_active_ptr_tmp = ((int *) ever_active_ptr + *nactive_ptr);
83
+ *ever_active_ptr_tmp = coord;
84
+ *nactive_ptr += 1;
85
86
return(0);
87
88
0 commit comments