From: Paul Brossier Date: Tue, 29 Jan 2019 02:16:32 +0000 (+0100) Subject: [conv2d] set_padding_mode case insensitive X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=5a89af0b23df95f2a1adbde0c6ad1124f666a54e;p=aubio.git [conv2d] set_padding_mode case insensitive --- diff --git a/src/ai/conv2d.c b/src/ai/conv2d.c index 3cecb13e..976c28bc 100644 --- a/src/ai/conv2d.c +++ b/src/ai/conv2d.c @@ -466,9 +466,9 @@ uint_t aubio_conv2d_set_padding_mode(aubio_conv2d_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;