projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a89af0
)
[conv1d] set_padding_mode case insensitive
author
Paul Brossier
<piem@piem.org>
Tue, 29 Jan 2019 02:16:50 +0000
(
03:16
+0100)
committer
Paul Brossier
<piem@piem.org>
Tue, 29 Jan 2019 02:16:50 +0000
(
03:16
+0100)
src/ai/conv1d.c
patch
|
blob
|
history
diff --git
a/src/ai/conv1d.c
b/src/ai/conv1d.c
index
d4c4997
..
586c521
100644
(file)
--- a/
src/ai/conv1d.c
+++ b/
src/ai/conv1d.c
@@
-323,9
+323,9
@@
uint_t aubio_conv1d_set_padding_mode(aubio_conv1d_t *c,
const char_t *padding_mode)
{
AUBIO_ASSERT(c && padding_mode);
- if (strncmp(padding_mode, "same", PATH_MAX) == 0) {
+ if (strnc
asec
mp(padding_mode, "same", PATH_MAX) == 0) {
c->padding_mode = PAD_SAME;
- } else if (strncmp(padding_mode, "valid", PATH_MAX) == 0) {
+ } else if (strnc
asec
mp(padding_mode, "valid", PATH_MAX) == 0) {
c->padding_mode = PAD_VALID;
} else {
return AUBIO_FAIL;