]> git.sesse.net Git - plocate/blobdiff - turbopfor-encode.h
Write new --help text from scratch, so that we have nothing from mlocate except some...
[plocate] / turbopfor-encode.h
index 532aa19d07b01faf6643f54153ac019387907d38..e6e3cd5f13129767fef24bda95420b5cf1be9c35 100644 (file)
 
 #include "turbopfor-common.h"
 
+#include <algorithm>
 #include <assert.h>
 #include <limits.h>
 #include <stdint.h>
+#include <string.h>
 
 template<class Docid>
 void write_le(Docid val, void *out)
@@ -27,7 +29,7 @@ void write_le(Docid val, void *out)
        } else if constexpr (sizeof(Docid) == 2) {
                val = htole16(val);
        } else if constexpr (sizeof(Docid) == 1) {
-               val = val;
+               // No change.
        } else {
                assert(false);
        }