diff --git a/libluna/include/luna/Result.h b/libluna/include/luna/Result.h index 00c88feb..e584f877 100644 --- a/libluna/include/luna/Result.h +++ b/libluna/include/luna/Result.h @@ -201,7 +201,7 @@ template <> class Result static Result from_syscall(long rc) { - if (rc < 0) return Error { -rc }; + if (rc < 0) return Error { (int)-rc }; return {}; }