Displaying 2 results from an estimated 2 matches for "n_pvalu".
Did you mean:
n_pvalue
2025 May 12
1
array-bound error with GCC 13/14
...5.1.0 on CRAN's Fedora test service.
>
> Firstly, the relevant code snippet:
>
> /** Compute adjusted p-values using Benjamini/Hochberg method */
> inline std::vector<double> adjust_pvalues(const std::vector<double> &
> unadjusted) {
>
> const size_t n_pvalue = unadjusted.size();
> if (n_pvalue < 2) return unadjusted; /* <-- WARNING HERE */
>
> std::vector<double> adjusted(n_pvalue, 0);
> /* Do some other stuff */
> return adjusted;
>
> }
>
>
> Secondly, the warning (on my own machine, using...
2025 May 09
2
array-bound error with GCC 13/14
...id not appear in clang, nor with GCC
15.1.0 on CRAN's Fedora test service.
Firstly, the relevant code snippet:
/** Compute adjusted p-values using Benjamini/Hochberg method */
inline std::vector<double> adjust_pvalues(const std::vector<double> &
unadjusted) {
const size_t n_pvalue = unadjusted.size();
if (n_pvalue < 2) return unadjusted; /* <-- WARNING HERE */
std::vector<double> adjusted(n_pvalue, 0);
/* Do some other stuff */
return adjusted;
}
Secondly, the warning (on my own machine, using GCC 13.2.0, which also
has this problem):
in...