diff options
author | Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> | 2021-09-24 15:48:48 +0200 |
---|---|---|
committer | Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> | 2021-09-24 16:05:39 +0200 |
commit | cfadd9f5ee5c1a3740a094648d73ad07a893aefc (patch) | |
tree | 6c53d1228913a197016ac55140a4073f4d8bb4d0 /numpy/array_api/_statistical_functions.py | |
parent | 0cf5bc092f801a4c004ecdb7d1061f46aaab4ff4 (diff) | |
download | numpy-cfadd9f5ee5c1a3740a094648d73ad07a893aefc.tar.gz |
MAINT: Fix LGTM.com warning
Comparison result is always the same
Comparison is always false because bufferSize >= 16384.
Indeed Dragon4_Scratch is defined as:
typedef struct {
BigInt bigints[BIGINT_DRAGON4_GROUPSIZE];
char repr[16384];
} Dragon4_Scratch;
Therefore sizeof(scratch->repr) is 16384. It cannot be 0 or 1.
Make bufferSize const for clarity.
Diffstat (limited to 'numpy/array_api/_statistical_functions.py')
0 files changed, 0 insertions, 0 deletions