diff options
Diffstat (limited to 'PC/winsound.c')
-rw-r--r-- | PC/winsound.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/PC/winsound.c b/PC/winsound.c index e6ff226..4caadb3 100644 --- a/PC/winsound.c +++ b/PC/winsound.c @@ -151,7 +151,7 @@ static struct PyMethodDef sound_methods[] = static void add_define(PyObject *dict, const char *key, long value) { - PyObject *k=PyString_FromString(key); + PyObject *k=PyBytes_FromString(key); PyObject *v=PyLong_FromLong(value); if(v&&k) { |