summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAmlal <amlal@nekernel.org>2025-05-06 19:43:46 +0200
committerAmlal <amlal@nekernel.org>2025-05-06 19:43:46 +0200
commitbd65fcfb90c5c4d58a875a41057001bccc6c3530 (patch)
tree337b4abcc440a5d4f21eacec1c352fbcf2cf79c5
parent4b904e071396aa79f238baf244255ac57f869337 (diff)
feat(kernel/HeFS): move sz_out out of the loop, to avoid it being reset.
Signed-off-by: Amlal <amlal@nekernel.org>
-rw-r--r--dev/kernel/src/FS/HeFS+FileSystemParser.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/dev/kernel/src/FS/HeFS+FileSystemParser.cc b/dev/kernel/src/FS/HeFS+FileSystemParser.cc
index 97afd614..39ed6916 100644
--- a/dev/kernel/src/FS/HeFS+FileSystemParser.cc
+++ b/dev/kernel/src/FS/HeFS+FileSystemParser.cc
@@ -1020,10 +1020,11 @@ _Output Bool HeFileSystemParser::INodeManip(_Input DriveTrait* mnt, VoidPtr bloc
if (!nodes) return NO;
+ SizeT sz_out = 0;
+
for (SizeT i = 0UL; i < cnt; ++i) {
auto& start = nodes[i];
SizeT cnt_slice = 0;
- SizeT sz_out = 0;
while (cnt_slice < kHeFSSliceCount) {
struct HEFS_INODE_SLICE& slice = start.fSlices[cnt_slice];