Skip to content

Commit ac78029

Browse files
Apply batched suggestions from code review
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
1 parent 6b7acc0 commit ac78029

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎Modules/_ctypes/_ctypes.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5535,9 +5535,9 @@ Simple_bool_impl(CDataObject *self)
55355535
if (PyStgInfo_FromObject(st, (PyObject *)self, &info) < 0) {
55365536
return -1;
55375537
}
5538-
assert(info); /* Cannot be NULL for CDataObject instances */
5538+
assert(info != NULL);
55395539

5540-
/* Only look at the value, not at extra space added by resize(). */
5540+
assert(info->size <= self->b_size);
55415541
for (Py_ssize_t i = 0; i < info->size; i++) {
55425542
if (self->b_ptr[i]) {
55435543
return 1;

0 commit comments

Comments
 (0)