From 1a21bb2666950d19788efb8aaa5ca42eaf07f9ba Mon Sep 17 00:00:00 2001 From: misson20000 Date: Wed, 28 Feb 2018 14:29:22 -0800 Subject: [PATCH] mac build fix --- ipcimpl/fsp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipcimpl/fsp.cpp b/ipcimpl/fsp.cpp index 87f464e..f6c2d95 100644 --- a/ipcimpl/fsp.cpp +++ b/ipcimpl/fsp.cpp @@ -313,7 +313,7 @@ struct DirectoryEntry { static_assert(sizeof(DirectoryEntry) == 0x310); uint32_t nn::fssrv::sf::IDirectory::Read(OUT uint64_t& entries_read, OUT uint8_t * entries_buf, guint entries_buf_len) { - size_t entries_count = entries_buf_len / sizeof(DirectoryEntry); + uint64_t entries_count = entries_buf_len / sizeof(DirectoryEntry); LOG_DEBUG(Fsp, "IDirectory::Read: Attempting to read " LONGFMT " entries (from " LONGFMT ")", entries_count, entries_buf_len); struct DirectoryEntry *entries = (struct DirectoryEntry*)entries_buf; struct dirent *curdir;