From 47fab631d02fdc8d750caea8eb2386a02922d1e1 Mon Sep 17 00:00:00 2001 From: "Justin C. Miller" Date: Tue, 10 Nov 2020 01:29:38 -0800 Subject: [PATCH] [boot] Fix compile warning about struct init The buffer structure was getting initialized with out of order members. --- src/boot/fs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/boot/fs.cpp b/src/boot/fs.cpp index ad4d874..dd1fcc5 100644 --- a/src/boot/fs.cpp +++ b/src/boot/fs.cpp @@ -77,7 +77,7 @@ file::load(uefi::memory_type mem_type) m_file->read(&size, data), L"Could not read from file"); - return { .data = data, .size = size }; + return { .size = size, .data = data }; } file