Kaydet (Commit) f156f503 authored tarafından Guido van Rossum's avatar Guido van Rossum

Correct typo: return -1 for error, not 0

üst 3863abb9
...@@ -421,7 +421,7 @@ sads_setattr(xp, name, v) ...@@ -421,7 +421,7 @@ sads_setattr(xp, name, v)
if (v == NULL) { if (v == NULL) {
err_setstr(TypeError, err_setstr(TypeError,
"can't delete sun audio status attributes"); "can't delete sun audio status attributes");
return 0; return -1;
} }
return setmember((char *)&xp->ai, sads_ml, name, v); return setmember((char *)&xp->ai, sads_ml, name, v);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment