fix: embarassing mistake
All checks were successful
Release CI action / build-and-push-container (push) Successful in 2m50s

This commit is contained in:
Asger Gitz-Johansen 2025-04-15 21:49:47 +02:00
parent 8ba1d45ccc
commit 6a6c1089e8

View File

@ -69,7 +69,7 @@ gdb: > x/16xb my_heap_object
``` ```
The first bytes at address `0x800100` are `0a` and `00`. These bytes are the *free-list* entry and explains how "big" The first bytes at address `0x800100` are `0a` and `00`. These bytes are the *free-list* entry and explains how "big"
the object is. When reading this, we have to remember that the model is littleengine-based (meaning that the bytes are the object is. When reading this, we have to remember that the model is little endian-based (meaning that the bytes are
switched), switched),
so we actually have the value of `0x000a`, meaning `10` in decimal. This makes a lot of sense, since we allocated 5 so we actually have the value of `0x000a`, meaning `10` in decimal. This makes a lot of sense, since we allocated 5
`int`s, that is of size 2 (16bit integers). `int`s, that is of size 2 (16bit integers).