Ignore:
Timestamp:
Dec 10, 2013, 11:57:54 PM (7 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master, pitchshift, sampler, timestretch, yinfft+
Children:
3194dca
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.