From 5a4b6c50d61d5b0ec0dc6249f9dea0d6cd6d5bee Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Tue, 29 Jan 2019 03:16:50 +0100 Subject: [PATCH] [conv1d] set_padding_mode case insensitive --- src/ai/conv1d.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ai/conv1d.c b/src/ai/conv1d.c index d4c49979..586c521d 100644 --- 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 (strncasecmp(padding_mode, "same", PATH_MAX) == 0) { c->padding_mode = PAD_SAME; - } else if (strncmp(padding_mode, "valid", PATH_MAX) == 0) { + } else if (strncasecmp(padding_mode, "valid", PATH_MAX) == 0) { c->padding_mode = PAD_VALID; } else { return AUBIO_FAIL; -- 2.11.0