From 5af8a8aa4cfdd9caac4cbdbf9cb1f068f0fdf89e Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Sun, 5 Jul 2015 20:31:30 -0400 Subject: [PATCH] Internals: Hash nulls --- src/V3String.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/V3String.h b/src/V3String.h index 207cab822..17f8da758 100644 --- a/src/V3String.h +++ b/src/V3String.h @@ -68,7 +68,7 @@ public: while (*sp) hashC((vluint64_t)*sp++); return *this; } - VHashFnv& hash(const string& str) { return hash(str.c_str()); } + VHashFnv& hash(const string& str) { return hash(str.data(), str.length()); } VHashFnv& hash(vluint64_t n) { hashC(n>>0); hashC(n>>8); hashC(n>>16); hashC(n>>24); hashC(n>>32); hashC(n>>40); hashC(n>>48); hashC(n>>56);