Skip to content

Commit da1c770

Browse files
committed
Update deprecated functions in esp32 network.c
Signed-off-by: Winford <winford@object.stream>
1 parent b5efecb commit da1c770

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/platforms/esp32/components/avm_builtins/network_driver.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,10 @@ static inline term make_atom(GlobalContext *global, AtomString atom_str)
126126
static term tuple_from_addr(Heap *heap, uint32_t addr)
127127
{
128128
term terms[4];
129-
terms[0] = term_from_int32((addr >> 24) & 0xFF);
130-
terms[1] = term_from_int32((addr >> 16) & 0xFF);
131-
terms[2] = term_from_int32((addr >> 8) & 0xFF);
132-
terms[3] = term_from_int32(addr & 0xFF);
129+
terms[0] = term_from_int((addr >> 24) & 0xFF);
130+
terms[1] = term_from_int((addr >> 16) & 0xFF);
131+
terms[2] = term_from_int((addr >> 8) & 0xFF);
132+
terms[3] = term_from_int(addr & 0xFF);
133133

134134
return port_heap_create_tuple_n(heap, 4, terms);
135135
}

0 commit comments

Comments
 (0)