[Python-checkins] CVS: python/dist/src/Mac/Modules/res _Resmodule.c,1.3,1.4

Jack Jansen jackjansen@users.sourceforge.net
Wed, 05 Sep 2001 08:43:13 -0700


Update of /cvsroot/python/python/dist/src/Mac/Modules/res
In directory usw-pr-cvs1:/tmp/cvs-serv31134/python/Mac/Modules/res

Modified Files:
	_Resmodule.c 
Log Message:
A few more gcc warnings bite the dust.

Index: _Resmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/res/_Resmodule.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** _Resmodule.c	2001/09/05 10:29:27	1.3
--- _Resmodule.c	2001/09/05 15:43:11	1.4
***************
*** 441,445 ****
  	else
  		_self->ob_freeit = NULL;
! 	return Py_BuildValue("i", old);
  
  }
--- 441,446 ----
  	else
  		_self->ob_freeit = NULL;
! 	_res = Py_BuildValue("i", old);
! 	return _res;
  
  }
***************
*** 1379,1383 ****
  	memcpy(*h, buf, len);
  	HUnlock(h);
! 	return ResObj_New(h);
  
  }
--- 1380,1385 ----
  	memcpy(*h, buf, len);
  	HUnlock(h);
! 	_res = ResObj_New(h);
! 	return _res;
  
  }
***************
*** 1404,1408 ****
  	rv = (ResourceObject *)ResObj_New(h);
  	rv->ob_freeit = PyMac_AutoDisposeHandle;
! 	return (PyObject *)rv;
  
  }
--- 1406,1411 ----
  	rv = (ResourceObject *)ResObj_New(h);
  	rv->ob_freeit = PyMac_AutoDisposeHandle;
! 	_res = (PyObject *)rv;
! 	return _res;
  
  }