summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/Nav.c
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-12-23 23:16:25 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2002-12-23 23:16:25 (GMT)
commitb734869f46cdbbfff231fdab49dc0ad4e3b45623 (patch)
tree54d71b8e166220f0c933ec78490a5a6eb850856d /Mac/Modules/Nav.c
parent74d93c81c190f9dfd7302e17536a49b8dd4f7da6 (diff)
downloadcpython-b734869f46cdbbfff231fdab49dc0ad4e3b45623.zip
cpython-b734869f46cdbbfff231fdab49dc0ad4e3b45623.tar.gz
cpython-b734869f46cdbbfff231fdab49dc0ad4e3b45623.tar.bz2
- Various tweaks to shut up compiler warnings.
- Regenerated with the correct calls to PyType_Ready and the correct deallocator calls.
Diffstat (limited to 'Mac/Modules/Nav.c')
-rw-r--r--Mac/Modules/Nav.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/Mac/Modules/Nav.c b/Mac/Modules/Nav.c
index 8833a84..b4984da 100644
--- a/Mac/Modules/Nav.c
+++ b/Mac/Modules/Nav.c
@@ -338,7 +338,7 @@ navrr_getattr(navrrobject *self, char *name)
PyObject *rv, *rvitem;
AEDesc desc;
- if (err=AECountItems(&self->itself.selection, &count)) {
+ if ((err=AECountItems(&self->itself.selection, &count))) {
PyErr_Mac(ErrorObject, err);
return NULL;
}
@@ -346,12 +346,12 @@ navrr_getattr(navrrobject *self, char *name)
return NULL;
for(i=0; i<count; i++) {
desc.dataHandle = NULL;
- if (err=AEGetNthDesc(&self->itself.selection, i+1, typeFSS, NULL, &desc)) {
+ if ((err=AEGetNthDesc(&self->itself.selection, i+1, typeFSS, NULL, &desc))) {
Py_DECREF(rv);
PyErr_Mac(ErrorObject, err);
return NULL;
}
- if (err=AEGetDescData(&desc, &fss, sizeof(FSSpec))) {
+ if ((err=AEGetDescData(&desc, &fss, sizeof(FSSpec)))) {
Py_DECREF(rv);
PyErr_Mac(ErrorObject, err);
return NULL;
@@ -368,7 +368,7 @@ navrr_getattr(navrrobject *self, char *name)
PyObject *rv, *rvitem;
AEDesc desc;
- if (err=AECountItems(&self->itself.selection, &count)) {
+ if ((err=AECountItems(&self->itself.selection, &count))) {
PyErr_Mac(ErrorObject, err);
return NULL;
}
@@ -376,12 +376,12 @@ navrr_getattr(navrrobject *self, char *name)
return NULL;
for(i=0; i<count; i++) {
desc.dataHandle = NULL;
- if (err=AEGetNthDesc(&self->itself.selection, i+1, typeFSRef, NULL, &desc)) {
+ if ((err=AEGetNthDesc(&self->itself.selection, i+1, typeFSRef, NULL, &desc))) {
Py_DECREF(rv);
PyErr_Mac(ErrorObject, err);
return NULL;
}
- if (err=AEGetDescData(&desc, &fsr, sizeof(FSRef))) {
+ if ((err=AEGetDescData(&desc, &fsr, sizeof(FSRef)))) {
Py_DECREF(rv);
PyErr_Mac(ErrorObject, err);
return NULL;