bpo-40455: Fix gcc10+ warning about writing into a section of offset 0 (GH-24384)
diff --git a/Objects/codeobject.c b/Objects/codeobject.c
index f7613e8..69cb31c 100644
--- a/Objects/codeobject.c
+++ b/Objects/codeobject.c
@@ -408,8 +408,8 @@ emit_pair(PyObject **bytes, int *offset, int a, int b)
if (_PyBytes_Resize(bytes, len * 2) < 0)
return 0;
}
- unsigned char *lnotab = (unsigned char *)
- PyBytes_AS_STRING(*bytes) + *offset;
+ unsigned char *lnotab = (unsigned char *) PyBytes_AS_STRING(*bytes);
+ lnotab += *offset;
*lnotab++ = a;
*lnotab++ = b;
*offset += 2;