Skip to content
Snippets Groups Projects
Commit 040d2a87 authored by Ansgar Burchardt's avatar Ansgar Burchardt
Browse files

Add correct offset for end of chunk

Using `&current->chunk_ + x` will add `x * sizeof(current->chunk_)` to
the pointer, but we only want to add `x`.

Adding a much larger number still "works" on 64bit systems (although it
does not perform the intended check). However on 32bit platforms this
wraps (at least in the way used by sllisttest.cc) and the "end" of the
chunk is suddenly before the beginning.

Closes #57
parent b8d06d5c
2 merge requests!212Fix link to build system doc,!181Add correct offset for end of chunk
Pipeline #
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment