diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2000-07-07 13:09:35 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2000-07-07 13:09:35 (GMT) |
commit | 0b13e7c1531351452703d6b9770194e53a3d3f69 (patch) | |
tree | 0a4fc2efc2674b48cebfa7b1058776aa3ec841e8 /Mac/Modules/snd | |
parent | 89d017d072cce9a3baee8861b10818a401127f08 (diff) | |
download | cpython-0b13e7c1531351452703d6b9770194e53a3d3f69.zip cpython-0b13e7c1531351452703d6b9770194e53a3d3f69.tar.gz cpython-0b13e7c1531351452703d6b9770194e53a3d3f69.tar.bz2 |
Changed all (hopefully) uses of unsigned 16 bit value to use H format specifier, now that h is signed-only.
Diffstat (limited to 'Mac/Modules/snd')
-rw-r--r-- | Mac/Modules/snd/Sndmodule.c | 4 | ||||
-rw-r--r-- | Mac/Modules/snd/sndsupport.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Mac/Modules/snd/Sndmodule.c b/Mac/Modules/snd/Sndmodule.c index b045baf..2e4eae5 100644 --- a/Mac/Modules/snd/Sndmodule.c +++ b/Mac/Modules/snd/Sndmodule.c @@ -70,9 +70,9 @@ SndCmd_Convert(PyObject *v, SndCommand *pc) if (PyArg_ParseTuple(v, "h|hl", &pc->cmd, &pc->param1, &pc->param2)) return 1; PyErr_Clear(); - return PyArg_ParseTuple(v, "hhs#", &pc->cmd, &pc->param1, &pc->param2, &len); + return PyArg_ParseTuple(v, "Hhs#", &pc->cmd, &pc->param1, &pc->param2, &len); } - return PyArg_Parse(v, "h", &pc->cmd); + return PyArg_Parse(v, "H", &pc->cmd); } static pascal void SndCh_UserRoutine(SndChannelPtr chan, SndCommand *cmd); /* Forward */ diff --git a/Mac/Modules/snd/sndsupport.py b/Mac/Modules/snd/sndsupport.py index d48a207..63fc4cb 100644 --- a/Mac/Modules/snd/sndsupport.py +++ b/Mac/Modules/snd/sndsupport.py @@ -116,9 +116,9 @@ SndCmd_Convert(PyObject *v, SndCommand *pc) if (PyArg_ParseTuple(v, "h|hl", &pc->cmd, &pc->param1, &pc->param2)) return 1; PyErr_Clear(); - return PyArg_ParseTuple(v, "hhs#", &pc->cmd, &pc->param1, &pc->param2, &len); + return PyArg_ParseTuple(v, "Hhs#", &pc->cmd, &pc->param1, &pc->param2, &len); } - return PyArg_Parse(v, "h", &pc->cmd); + return PyArg_Parse(v, "H", &pc->cmd); } static pascal void SndCh_UserRoutine(SndChannelPtr chan, SndCommand *cmd); /* Forward */ |