Changeset 556cadb for src/ai


Ignore:
Timestamp:
Dec 29, 2021, 5:52:02 PM (3 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/crepe
Children:
5a4b6c5
Parents:
d6fdff6
git-author:
Paul Brossier <piem@piem.org> (01/29/19 03:16:32)
git-committer:
Paul Brossier <piem@piem.org> (12/29/21 17:52:02)
Message:

[conv2d] set_padding_mode case insensitive

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ai/conv2d.c

    rd6fdff6 r556cadb  
    467467{
    468468  AUBIO_ASSERT(c && padding_mode);
    469   if (strncmp(padding_mode, "same", PATH_MAX) == 0) {
     469  if (strncasecmp(padding_mode, "same", PATH_MAX) == 0) {
    470470    c->padding_mode = PAD_SAME;
    471   } else if (strncmp(padding_mode, "valid", PATH_MAX) == 0) {
     471  } else if (strncasecmp(padding_mode, "valid", PATH_MAX) == 0) {
    472472    c->padding_mode = PAD_VALID;
    473473  } else {
Note: See TracChangeset for help on using the changeset viewer.