summaryrefslogtreecommitdiff
path: root/debian/patches/dyson-dirent-bug-3125.patch
blob: 34d383d2cc05b5e51862cce8a794f4ecc5a65bce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Fix operation priority
Origin: upstream
Bug: https://bitbucket.org/pypy/pypy/issues/3125
Last-Update: 2019-12-04
Index: pypy.git/rpython/rlib/rposix.py
===================================================================
--- pypy.git.orig/rpython/rlib/rposix.py
+++ pypy.git/rpython/rlib/rposix.py
@@ -800,7 +800,7 @@ if not _WIN32:
         DIRENT = rffi_platform.Struct('struct dirent',
             [('d_name', lltype.FixedSizeArray(rffi.CHAR, 1)),
              ('d_ino', lltype.Signed)]
-            + [('d_type', rffi.INT)] if HAVE_D_TYPE else [])
+            + ([('d_type', rffi.INT)] if HAVE_D_TYPE else []))
         if HAVE_D_TYPE:
             DT_UNKNOWN = rffi_platform.ConstantInteger('DT_UNKNOWN')
             DT_REG     = rffi_platform.ConstantInteger('DT_REG')