/*
- * Copyright 2014 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.
*/
-#include "MacAddress.h"
+#include <folly/MacAddress.h>
-#include "folly/Exception.h"
-#include "folly/IPAddressV6.h"
+#include <ostream>
+
+#include <folly/Exception.h>
+#include <folly/IPAddressV6.h>
using std::invalid_argument;
using std::string;
}
// Update parsed with the newly parsed byte
- parsed[byteIndex] = ((upper << 4) | lower);
+ parsed[byteIndex] = uint8_t((upper << 4) | lower);
}
if (p != str.end()) {