[Python-checkins] CVS: python/dist/src/Modules posixmodule.c,2.128,2.129

Guido van Rossum python-dev@python.org
Thu, 30 Mar 2000 20:26:26 -0500 (EST)


Update of /projects/cvsroot/python/dist/src/Modules
In directory eric:/projects/python/develop/guido/src/Modules

Modified Files:
	posixmodule.c 
Log Message:
Sigh.  On Windows, (mode_t)i fails.  Assume that there's a prototype
in scope on systems where mode_t isn't the same size as int...


Index: posixmodule.c
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Modules/posixmodule.c,v
retrieving revision 2.128
retrieving revision 2.129
diff -C2 -r2.128 -r2.129
*** posixmodule.c	2000/03/31 00:48:21	2.128
--- posixmodule.c	2000/03/31 01:26:23	2.129
***************
*** 699,703 ****
  		return NULL;
  	Py_BEGIN_ALLOW_THREADS
! 	res = chmod(path, (mode_t)i);
  	Py_END_ALLOW_THREADS
  	if (res < 0)
--- 699,703 ----
  		return NULL;
  	Py_BEGIN_ALLOW_THREADS
! 	res = chmod(path, i);
  	Py_END_ALLOW_THREADS
  	if (res < 0)