Skip to content

Commit

Permalink
Revert "silence gcc error message about constants"
Browse files Browse the repository at this point in the history
This reverts commit f263a31.
  • Loading branch information
andrenth committed Oct 13, 2015
1 parent f263a31 commit d3eb949
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/uint40_stubs.c
Expand Up @@ -43,7 +43,7 @@ uint40_shift_right(value v1, value v2)
CAMLreturn (copy_uint40((Uint64_val(v1) >> Int_val(v2)) & mask));
}

static const uint64_t uint40_max = 0xFFFFFFFFFF000000ULL;
static const uint64_t uint40_max = UINT64_MAX & mask;
static const uint64_t uint40_one = (1 << 24);

CAMLprim value
Expand Down
2 changes: 1 addition & 1 deletion lib/uint48_stubs.c
Expand Up @@ -43,7 +43,7 @@ uint48_shift_right(value v1, value v2)
CAMLreturn (copy_uint48((Uint64_val(v1) >> Int_val(v2)) & mask));
}

static const uint64_t uint48_max = 0xFFFFFFFFFFFF0000ULL;
static const uint64_t uint48_max = UINT64_MAX & mask;
static const uint64_t uint48_one = (1 << 16);

CAMLprim value
Expand Down
2 changes: 1 addition & 1 deletion lib/uint56_stubs.c
Expand Up @@ -43,7 +43,7 @@ uint56_shift_right(value v1, value v2)
CAMLreturn (copy_uint56((Uint64_val(v1) >> Int_val(v2)) & mask));
}

static const uint64_t uint56_max = 0xFFFFFFFFFFFFFF00ULL;
static const uint64_t uint56_max = UINT64_MAX & mask;
static const uint64_t uint56_one = (1 << 8);

CAMLprim value
Expand Down

0 comments on commit d3eb949

Please sign in to comment.