We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 731ded8 commit 96a9747Copy full SHA for 96a9747
1 file changed
klib/entry/secondary.cpp
@@ -41,8 +41,8 @@ namespace klib::entry {
41
break;
42
}
43
44
- // get the length of the segment
45
- const uint32_t length = ((segment->end - segment->start) + (sizeof(uint32_t) - 1)) / sizeof(uint32_t);
+ // get the length of the segment in elements
+ const uint32_t length = (segment->end - segment->start);
46
47
// check if we have any length to copy
48
if (!length) {
@@ -63,8 +63,8 @@ namespace klib::entry {
63
64
65
66
67
68
69
70
0 commit comments