From: Oliver Kurth Date: Fri, 15 Sep 2017 18:23:23 +0000 (-0700) Subject: pollInt.h X-Git-Tag: stable-10.2.0~362 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e8b47cd8ea1af1f30a1a2fdfc45d41e7a0a3b992;p=thirdparty%2Fopen-vm-tools.git pollInt.h Mac compiler is picky about an int->enum conversion, and requires a typecast. --- diff --git a/open-vm-tools/lib/include/pollImpl.h b/open-vm-tools/lib/include/pollImpl.h index 366f8a2ea..3bed11c0e 100644 --- a/open-vm-tools/lib/include/pollImpl.h +++ b/open-vm-tools/lib/include/pollImpl.h @@ -114,7 +114,7 @@ static INLINE PollClass PollClassSet_FFS(PollClassSet *set) { if (set->bits != 0) { - return lssbPtr_0(set->bits); + return (PollClass)lssbPtr_0(set->bits); } return POLL_MAX_CLASSES; }