projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
AsyncIO::cancel
[folly.git]
/
folly
/
SpookyHashV1.cpp
diff --git
a/folly/SpookyHashV1.cpp
b/folly/SpookyHashV1.cpp
index c0885d24a00c43fa8cb48b421485e8395cb7a6ee..cdd09193a603853daf293b99dc06eca3ca22fbdf 100644
(file)
--- a/
folly/SpookyHashV1.cpp
+++ b/
folly/SpookyHashV1.cpp
@@
-1,5
+1,5
@@
/*
/*
- * Copyright 201
4
Facebook, Inc.
+ * Copyright 201
7
Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@
-196,7
+196,7
@@
void SpookyHashV1::Hash128(
remainder = (length - ((const uint8_t *)end-(const uint8_t *)message));
memcpy(buf, end, remainder);
memset(((uint8_t *)buf)+remainder, 0, sc_blockSize-remainder);
remainder = (length - ((const uint8_t *)end-(const uint8_t *)message));
memcpy(buf, end, remainder);
memset(((uint8_t *)buf)+remainder, 0, sc_blockSize-remainder);
- ((uint8_t
*)buf)[sc_blockSize-1] = remainder
;
+ ((uint8_t
*)buf)[sc_blockSize - 1] = uint8_t(remainder)
;
Mix(buf, h0,h1,h2,h3,h4,h5,h6,h7,h8,h9,h10,h11);
// do some final mixing
Mix(buf, h0,h1,h2,h3,h4,h5,h6,h7,h8,h9,h10,h11);
// do some final mixing