[pypy-commit] pypy win64_gborg: test_ll_os_stat works now as well

ctismer noreply at buildbot.pypy.org
Wed Nov 9 01:33:01 CET 2011


Author: Christian Tismer <tismer at stackless.com>
Branch: win64_gborg
Changeset: r48976:10717241c974
Date: 2011-11-09 01:32 +0100
http://bitbucket.org/pypy/pypy/changeset/10717241c974/

Log:	test_ll_os_stat works now as well

diff --git a/pypy/rpython/module/ll_os_stat.py b/pypy/rpython/module/ll_os_stat.py
--- a/pypy/rpython/module/ll_os_stat.py
+++ b/pypy/rpython/module/ll_os_stat.py
@@ -319,6 +319,7 @@
     assert len(STAT_FIELDS) == 10    # no extra fields on Windows
 
     def attributes_to_mode(attributes):
+        attributes = lltype.r_uint(attributes)
         m = 0
         if attributes & win32traits.FILE_ATTRIBUTE_DIRECTORY:
             m |= win32traits._S_IFDIR | 0111 # IFEXEC for user,group,other


More information about the pypy-commit mailing list