[pypy-svn] r30354 - pypy/dist/pypy/module/mmap

rhymes at codespeak.net rhymes at codespeak.net
Sat Jul 22 15:26:14 CEST 2006


Author: rhymes
Date: Sat Jul 22 15:26:12 2006
New Revision: 30354

Modified:
   pypy/dist/pypy/module/mmap/interp_mmap.py
Log:
fix comment and naming

Modified: pypy/dist/pypy/module/mmap/interp_mmap.py
==============================================================================
--- pypy/dist/pypy/module/mmap/interp_mmap.py	(original)
+++ pypy/dist/pypy/module/mmap/interp_mmap.py	Sat Jul 22 15:26:12 2006
@@ -385,10 +385,10 @@
             #     return res
             if _POSIX:
                 if _LINUX:
-                    # padding of the address
+                    # alignment of the address
                     value = pythonapi.PyLong_FromVoidPtr(data)
-                    padded_value = value & ~(PAGESIZE - 1)
-                    res = linux_msync(c_void_p(padded_value), size, MS_SYNC)
+                    aligned_value = value & ~(PAGESIZE - 1)
+                    res = linux_msync(c_void_p(aligned_value), size, MS_SYNC)
                 else:
                     res = libc.msync(data, size, MS_SYNC)
                 if res == -1:



More information about the Pypy-commit mailing list