Skip to content

Commit 68d229d

Browse files
committed
Be more generic (even though it looks fugly)
1 parent 3b49a97 commit 68d229d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/native/clr/host/fastdev-assemblies.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ auto FastDevAssemblies::open_assembly (std::string_view const& name, int64_t &si
6868
return nullptr;
6969
}
7070

71-
constexpr size_t MAX_SIZE = std::numeric_limits<int64_t>::max ();
71+
constexpr size_t MAX_SIZE = std::numeric_limits<std::remove_reference_t<decltype(size)>>::max ();
7272
if (file_size.value () > MAX_SIZE) [[unlikely]] {
7373
Helpers::abort_application (
7474
LOG_ASSEMBLY,

0 commit comments

Comments
 (0)