From 66ee72167833adbeaa385ba8588be511a4e40ce1 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Mon, 4 Mar 2019 23:13:55 -0600 Subject: [PATCH] [ox/fs] Remove designated initializer usage (synced from 8b7db3d544e11c722147cf7dfb725d9012829619) --- src/ox/fs/filesystem/passthroughfs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ox/fs/filesystem/passthroughfs.cpp b/src/ox/fs/filesystem/passthroughfs.cpp index e45d0cd1a..fa31b7b08 100644 --- a/src/ox/fs/filesystem/passthroughfs.cpp +++ b/src/ox/fs/filesystem/passthroughfs.cpp @@ -102,7 +102,7 @@ ValErr PassThroughFS::stat(const char *path) { uint64_t size = type == FileType_Directory ? 0 : std::filesystem::file_size(p, ec); oxTrace("PassThroughFS::stat") << ec.message().c_str() << path; oxTrace("PassThroughFS::stat::size") << path << size; - return {{.size = size, .fileType = type}, OxError(ec.value())}; + return {{0, 0, size, type}, OxError(ec.value())}; } uint64_t PassThroughFS::spaceNeeded(uint64_t size) {