Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Fixed call of max() on MSVC compiler #1509

Merged
merged 1 commit into from
Sep 29, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion thrust/mr/allocator.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class allocator : private validator<MR>
__host__ __device__
size_type max_size() const
{
return std::numeric_limits<size_type>::max() / sizeof(T);
return (std::numeric_limits<size_type>::max)() / sizeof(T);
}

/*! Constructor.
Expand Down