Skip to content
Snippets Groups Projects
Commit 5c44926b authored by Alexandr's avatar Alexandr
Browse files

fix gh-630 fixed quota.h for compatibility with 32bit compilation

parent e3cad563
No related merge requests found
......@@ -39,7 +39,8 @@ extern "C" {
#define QUOTA_UNIT_SIZE 1024ULL
static const uint64_t QUOTA_MAX = QUOTA_UNIT_SIZE * UINT32_MAX;
static const size_t QUOTA_MAX = QUOTA_UNIT_SIZE * UINT32_MAX > SIZE_MAX ?
SIZE_MAX : QUOTA_UNIT_SIZE * UINT32_MAX;
/** A basic limit on memory usage */
struct quota {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment