projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make most implicit integer truncations and sign conversions explicit
[folly.git]
/
folly
/
portability
/
Fcntl.cpp
diff --git
a/folly/portability/Fcntl.cpp
b/folly/portability/Fcntl.cpp
index 757a63f38488bc5925e78a0f57f43bb4be4b0328..60e59fc57f84e73b2b0de9c87b5fe6ea3d73d79d 100755
(executable)
--- a/
folly/portability/Fcntl.cpp
+++ b/
folly/portability/Fcntl.cpp
@@
-36,7
+36,7
@@
int fcntl(int fd, int cmd, ...) {
if (h != INVALID_HANDLE_VALUE) {
DWORD flags;
if (GetHandleInformation(h, &flags)) {
- res =
flags & HANDLE_FLAG_INHERIT
;
+ res =
int(flags & HANDLE_FLAG_INHERIT)
;
}
}
break;