@@ -819,7 +819,7 @@ bu_short(_structmodulestate *state, const char *p, const formatdef *f)
819
819
} while (-- i > 0 );
820
820
/* Extend sign, avoiding implementation-defined or undefined behaviour. */
821
821
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 );
823
823
}
824
824
825
825
static PyObject *
@@ -836,7 +836,7 @@ bu_int(_structmodulestate *state, const char *p, const formatdef *f)
836
836
} while (-- i > 0 );
837
837
/* Extend sign, avoiding implementation-defined or undefined behaviour. */
838
838
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 );
840
840
}
841
841
842
842
static PyObject *
@@ -866,7 +866,7 @@ bu_longlong(_structmodulestate *state, const char *p, const formatdef *f)
866
866
/* Extend sign, avoiding implementation-defined or undefined behaviour. */
867
867
x = (x ^ 0x8000000000000000U ) - 0x8000000000000000U ;
868
868
return PyLong_FromLongLong (
869
- x & 0x8000000000000000U ? -1 - (long long )(~x ): (long long )x );
869
+ x & 0x8000000000000000U ? -1 - (long long )(~x ) : (long long )x );
870
870
}
871
871
872
872
static PyObject *
@@ -1062,7 +1062,7 @@ lu_short(_structmodulestate *state, const char *p, const formatdef *f)
1062
1062
} while (i > 0 );
1063
1063
/* Extend sign, avoiding implementation-defined or undefined behaviour. */
1064
1064
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 );
1066
1066
}
1067
1067
1068
1068
static PyObject *
@@ -1079,7 +1079,7 @@ lu_int(_structmodulestate *state, const char *p, const formatdef *f)
1079
1079
} while (i > 0 );
1080
1080
/* Extend sign, avoiding implementation-defined or undefined behaviour. */
1081
1081
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 );
1083
1083
}
1084
1084
1085
1085
static PyObject *
@@ -1109,7 +1109,7 @@ lu_longlong(_structmodulestate *state, const char *p, const formatdef *f)
1109
1109
/* Extend sign, avoiding implementation-defined or undefined behaviour. */
1110
1110
x = (x ^ 0x8000000000000000U ) - 0x8000000000000000U ;
1111
1111
return PyLong_FromLongLong (
1112
- x & 0x8000000000000000U ? -1 - (long long )(~x ): (long long )x );
1112
+ x & 0x8000000000000000U ? -1 - (long long )(~x ) : (long long )x );
1113
1113
}
1114
1114
1115
1115
static PyObject *
0 commit comments