Client RequestChannels and folly/python/futures.h
[folly.git] / folly / Exception.h
index 220628e234f55fa88fc1716ee4e5adad03acf50c..28e0793816dbfcf448416fe5e441623792be1d1b 100644 (file)
@@ -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)...);
   }
 }