Skip to content

Commit 36f6034

Browse files
committed
Use consistent return types for PyStackRef_IsHeapSafe
1 parent e2f1387 commit 36f6034

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Include/internal/pycore_stackref.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,10 +197,10 @@ PyStackRef_IsMortal(_PyStackRef ref)
197197
return _Py_IsImmortal(obj);
198198
}
199199

200-
static inline int
200+
static inline bool
201201
PyStackRef_IsHeapSafe(_PyStackRef ref)
202202
{
203-
return 1;
203+
return true;
204204
}
205205

206206

@@ -333,10 +333,10 @@ PyStackRef_DUP(_PyStackRef stackref)
333333
return stackref;
334334
}
335335

336-
static inline int
336+
static inline bool
337337
PyStackRef_IsHeapSafe(_PyStackRef ref)
338338
{
339-
return 1;
339+
return true;
340340
}
341341

342342
static inline _PyStackRef

0 commit comments

Comments
 (0)