jetstream.patch 709 B

1234567891011121314151617181920212223
  1. diff -urN jetstream-org/HashSet.cpp jetstream/HashSet.cpp
  2. --- jetstream-org/HashSet.cpp 2020-10-30 04:12:42.000000000 +0800
  3. +++ jetstream/HashSet.cpp 2022-01-24 17:11:08.619831711 +0800
  4. @@ -22,8 +22,10 @@
  5. #include <algorithm>
  6. #include <memory>
  7. +#include <limits>
  8. #include <stdio.h>
  9. #include <stdlib.h>
  10. +#include <string.h>
  11. #include <sys/time.h>
  12. // Compile with: xcrun clang++ -o HashSet HashSet.cpp -O2 -W -framework Foundation -licucore -std=c++11 -fvisibility=hidden -DNDEBUG=1
  13. @@ -76,7 +78,7 @@
  14. inline ToType bitwise_cast(FromType from)
  15. {
  16. typename std::remove_const<ToType>::type to { };
  17. - std::memcpy(&to, &from, sizeof(to));
  18. + memcpy(&to, &from, sizeof(to));
  19. return to;
  20. }