diff options
| author | Anson Mansfield <amansfield@mantaro.com> | 2025-08-30 14:37:35 -0400 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2025-09-10 17:24:56 +1000 |
| commit | 1d90577b7e1fa5c4f452471378dd887152a4825c (patch) | |
| tree | 6b3fb32c2229fc2c26908be51a560d1124122245 /ports/esp8266/posix_helpers.c | |
| parent | a21d3f19753b02d452ece551d728944c70d5d572 (diff) | |
py/gc: Clean up usage of GC_ALLOC_FLAG_HAS_FINALISER flag.
The calls signature for gc_malloc was changed in
5ed578e5b48730606536ded9a711223ae9a70262, without cleaning up existing
code on the rationale that the previous bool is automatically converted
to an int with the same meaning.
This commit goes back and cleans up existing invocations to make their
behavior more readable in a modern context.
Signed-off-by: Anson Mansfield <amansfield@mantaro.com>
Diffstat (limited to 'ports/esp8266/posix_helpers.c')
| -rw-r--r-- | ports/esp8266/posix_helpers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/esp8266/posix_helpers.c b/ports/esp8266/posix_helpers.c index b72c4ff9d..11c9dc36d 100644 --- a/ports/esp8266/posix_helpers.c +++ b/ports/esp8266/posix_helpers.c @@ -33,7 +33,7 @@ // Functions for external libs like axTLS, BerkeleyDB, etc. void *malloc(size_t size) { - void *p = gc_alloc(size, false); + void *p = gc_alloc(size, 0); if (p == NULL) { // POSIX requires ENOMEM to be set in case of error errno = ENOMEM; |
