diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2022-11-21 16:11:25 +0100 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2022-11-21 16:11:25 +0100 |
commit | d189d83e7c14590027c6342eff8ed28d0af78dcb (patch) | |
tree | 64afafce940737f1bbd5a0c713784680ee7d48b6 /vespalib | |
parent | 88a4c159d2fa483e6b1cbcfc7bc56667e3427828 (diff) |
Improve comment and cleanup duplicate openhft dependency management
Diffstat (limited to 'vespalib')
-rw-r--r-- | vespalib/src/vespa/vespalib/util/string_hash.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vespalib/src/vespa/vespalib/util/string_hash.cpp b/vespalib/src/vespa/vespalib/util/string_hash.cpp index de0865fe86f..b3a6fc51995 100644 --- a/vespalib/src/vespa/vespalib/util/string_hash.cpp +++ b/vespalib/src/vespa/vespalib/util/string_hash.cpp @@ -8,7 +8,7 @@ namespace vespalib { double hash2d(const char *str, size_t len) { size_t h = hashValue(str, len); if ((h & 0x7ff0000000000000ul) == 0x7ff0000000000000ul) { - // Avoid nan + // Avoid nan and inf h = h & 0xffeffffffffffffful; } double d = 0; |