8000 Fix unconventional spacing · python/cpython@1294440 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1294440

Browse files
committed
Fix unconventional spacing
1 parent 994703e commit 1294440

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Modules/_struct.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@ bu_short(_structmodulestate *state, const char *p, const formatdef *f)
819819
} while (--i > 0);
820820
/* Extend sign, avoiding implementation-defined or undefined behaviour. */
821821
x = (x ^ 0x8000U) - 0x8000U;
822-
return PyLong_FromLong(x & 0x8000U ? -1 - (long)(~x): (long)x);
822+
return PyLong_FromLong(x & 0x8000U ? -1 - (long)(~x) : (long)x);
823823
}
824824

825825
static PyObject *
@@ -836,7 +836,7 @@ bu_int(_structmodulestate *state, const char *p, const formatdef *f)
836836
} while (--i > 0);
837837
/* Extend sign, avoiding implementation-defined or undefined behaviour. */
838838
x = (x ^ 0x80000000U) - 0x80000000U;
839-
return PyLong_FromLong(x & 0x80000000U ? -1 - (long)(~x): (long)x);
839+
return PyLong_FromLong(x & 0x80000000U ? -1 - (long)(~x) : (long)x);
840840
}
841841

842842
static PyObject *
@@ -866,7 +866,7 @@ bu_longlong(_structmodulestate *state, const char *p, const formatdef *f)
866866
/* Extend sign, avoiding implementation-defined or undefined behaviour. */
867867
x = (x ^ 0x8000000000000000U) - 0x8000000000000000U;
868868
return PyLong_FromLongLong(
869-
x & 0x8000000000000000U ? -1 - (long long)(~x): (long long)x);
869+
x & 0x8000000000000000U ? -1 - (long long)(~x) : (long long)x);
870870
}
871871

872872
static PyObject *
@@ -1062,7 +1062,7 @@ lu_short(_structmodulestate *state, const char *p, const formatdef *f)
10621062
} while (i > 0);
10631063
/* Extend sign, avoiding implementation-defined or undefined behaviour. */
10641064
x = (x ^ 0x8000U) - 0x8000U;
1065-
return PyLong_FromLong(x & 0x8000U ? -1 - (long)(~x): (long)x);
1065+
return PyLong_FromLong(x & 0x8000U ? -1 - (long)(~x) : (long)x);
10661066
}
10671067

10681068
static PyObject *
@@ -1079,7 +1079,7 @@ lu_int(_structmodulestate *state, const char *p, const formatdef *f)
10791079
} while (i > 0);
10801080
/* Extend sign, avoiding implementation-defined or undefined behaviour. */
10811081
x = (x ^ 0x80000000U) - 0x80000000U;
1082-
return PyLong_FromLong(x & 0x80000000U ? -1 - (long)(~x): (long)x);
1082+
return PyLong_FromLong(x & 0x80000000U ? -1 - (long)(~x) : (long)x);
10831083
}
10841084

10851085
static PyObject *
@@ -1109,7 +1109,7 @@ lu_longlong(_structmodulestate *state, const char *p, const formatdef *f)
11091109
/* Extend sign, avoiding implementation-defined or undefined behaviour. */
11101110
x = (x ^ 0x8000000000000000U) - 0x8000000000000000U;
11111111
return PyLong_FromLongLong(
1112-
x & 0x8000000000000000U ? -1 - (long long)(~x): (long long)x);
1112+
x & 0x8000000000000000U ? -1 - (long long)(~x) : (long long)x);
11131113
}
11141114

11151115
static PyObject *

0 commit comments

Comments
 (0)
0