Changeset 5a4b6c5


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

[conv1d] set_padding_mode case insensitive

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ai/conv1d.c

    r556cadb r5a4b6c5  
    324324{
    325325  AUBIO_ASSERT(c && padding_mode);
    326   if (strncmp(padding_mode, "same", PATH_MAX) == 0) {
     326  if (strncasecmp(padding_mode, "same", PATH_MAX) == 0) {
    327327    c->padding_mode = PAD_SAME;
    328   } else if (strncmp(padding_mode, "valid", PATH_MAX) == 0) {
     328  } else if (strncasecmp(padding_mode, "valid", PATH_MAX) == 0) {
    329329    c->padding_mode = PAD_VALID;
    330330  } else {
Note: See TracChangeset for help on using the changeset viewer.