Fix outstanding problems with CI pipeline and codebase state #3

Merged
kayomn merged 9 commits from ci-updates into main 2022-10-04 00:11:33 +02:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit 774536fd58 - Show all commits

View File

@ -377,11 +377,11 @@ pub const FileAccess = opaque {
/// ///
pub fn size(file_access: *FileAccess, event_loop: *EventLoop) FileError!usize { pub fn size(file_access: *FileAccess, event_loop: *EventLoop) FileError!usize {
// Save cursor to return to it later. // Save cursor to return to it later.
const origin_cursor = try event_loop.tellFile(file_access); const origin_cursor = try event_loop.queryFile(file_access);
try event_loop.seekFile(file_access, .tail, 0); try event_loop.seekFile(file_access, .tail, 0);
const ending_cursor = try event_loop.tellFile(file_access); const ending_cursor = try event_loop.queryFile(file_access);
// Return to original cursor. // Return to original cursor.
try event_loop.seekFile(file_access, .head, origin_cursor); try event_loop.seekFile(file_access, .head, origin_cursor);