Changeset 906c0a2


Ignore:
Timestamp:
Dec 10, 2013, 11:57:54 PM (11 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/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
3194dca1
Parents:
18e22f9
Message:

lib/gen_pyobject.py: fix size checks

Signed-off-by: Paul Brossier <piem@piem.org>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/lib/gen_pyobject.py

    r18e22f9 r906c0a2  
    240240
    241241  self->%(pname)s = %(defval)s;
    242   if (%(pname)s > 0) {
     242  if ((sint_t)%(pname)s > 0) {
    243243    self->%(pname)s = %(pname)s;
    244   } else if (%(pname)s < 0) {
     244  } else if ((sint_t)%(pname)s < 0) {
    245245    PyErr_SetString (PyExc_ValueError,
    246246        "can not use negative value for %(pname)s");
Note: See TracChangeset for help on using the changeset viewer.