Commit 48b2adc
authored
Fix calloc-transposed-args warning (#520)
```
ntt.h: In function ‘ntt_multiply’:
ntt.h:136:41: warning: ‘ruby_xcalloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Wcalloc-transposed-args]
136 | uint32_t *mem = ruby_xcalloc(sizeof(uint32_t), ntt_size * 9);
| ^~~~~~~~
ntt.h:136:41: note: earlier argument should specify number of elements, later size of each element
```1 parent b66add1 commit 48b2adc
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
| 136 | + | |
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| |||
0 commit comments