/*
- * Copyright 2015 Facebook, Inc.
+ * Copyright 2017 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* limitations under the License.
*/
-#ifndef FOLLY_FAST_BYTE_SET_H_
-#define FOLLY_FAST_BYTE_SET_H_
+#pragma once
#include <cstdint>
#include <glog/logging.h>
if (r) {
DCHECK_LT(size_, kCapacity);
dense_[size_] = i;
- sparse_[i] = size_;
+ sparse_[i] = uint8_t(size_);
size_++;
}
return r;
};
}
-
-#endif