@@ -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
825825static 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
842842static 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
872872static 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
10681068static 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
10851085static 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
11151115static PyObject *
0 commit comments