projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Switch includes of PThread to the portability header
[folly.git]
/
folly
/
Exception.h
diff --git
a/folly/Exception.h
b/folly/Exception.h
index 220628e234f55fa88fc1716ee4e5adad03acf50c..28e0793816dbfcf448416fe5e441623792be1d1b 100644
(file)
--- a/
folly/Exception.h
+++ b/
folly/Exception.h
@@
-66,7
+66,7
@@
void checkPosixError(int err, Args&&... args) {
template <class... Args>
void checkKernelError(ssize_t ret, Args&&... args) {
if (UNLIKELY(ret < 0)) {
- throwSystemErrorExplicit(
-ret
, std::forward<Args>(args)...);
+ throwSystemErrorExplicit(
int(-ret)
, std::forward<Args>(args)...);
}
}