Skip to content

Commit 1e6b18c

Browse files
vstinnerencukou
authored andcommitted
Style fixes
1 parent 55ae793 commit 1e6b18c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Include/internal/pycore_moduleobject.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ typedef struct {
4646
static inline PyModuleDef *_PyModule_GetDefOrNull(PyObject *arg) {
4747
PyModuleObject *mod = _PyModule_CAST(arg);
4848
if (mod->md_token_is_def) {
49-
return (PyModuleDef *)((PyModuleObject *)mod)->md_token;
49+
return (PyModuleDef *)mod->md_token;
5050
}
5151
return NULL;
5252
}

Objects/moduleobject.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ static PyMemberDef module_members[] = {
2828
};
2929

3030
static void
31-
assert_def_missing_or_redundant(PyModuleObject *m) {
31+
assert_def_missing_or_redundant(PyModuleObject *m)
32+
{
3233
/* We copy all relevant info into the module object.
3334
* Modules created using a def keep a reference to that (statically
3435
* allocated) def; the info there should match what we have in the module.

0 commit comments

Comments
 (0)