Project

General

Profile

Actions

Bug #14231

closed

__uint128_t check in hash.c is broken, use

Added by bircoph (Andrew Savchenko) over 6 years ago. Updated about 6 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:84438]

Description

Current check for __uint128_t in hash.c is not valid, since it ignores
compilers other than gcc. We hit this on lcc on e2k platform.

Configure script properly checks from 128-bit data types support and
sets HAVE_UINT128_T accordingly. This approach is already used within
ruby at bignum.c, random.c, etc.

Probably hash.c is an overlooked remnant of old days. This patch fixes
this.

See also GitHub PR on this issue:
https://github.com/ruby/ruby/pull/1781


Files

ruby-uint128-check.patch (413 Bytes) ruby-uint128-check.patch bircoph (Andrew Savchenko), 12/25/2017 11:18 AM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0