Changeset 5c849af for tests/src/io


Ignore:
Timestamp:
Dec 16, 2018, 2:01:00 AM (6 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/timestretch, fix/ffmpeg5, master
Children:
46a1e34
Parents:
26c6ee4
Message:

[tests] use double quote to test \0 as a string

Prevents clang throwing an error, since '\0' is rightfully treated as a
single character.

See this explanation by Stephen J. Butler:
https://lists.macports.org/pipermail/macports-dev/2016-June/033168.html

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/src/io/test-source.c

    r26c6ee4 r5c849af  
    7171
    7272  if (new_aubio_source(0,    samplerate, hop_size)) return 1;
    73   if (new_aubio_source('\0', samplerate, hop_size)) return 1;
     73  if (new_aubio_source("\0", samplerate, hop_size)) return 1;
    7474  if (new_aubio_source(uri,          -1, hop_size)) return 1;
    7575  if (new_aubio_source(uri,           0,        0)) return 1;
Note: See TracChangeset for help on using the changeset viewer.