]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
pollInt.h
authorOliver Kurth <okurth@vmware.com>
Fri, 15 Sep 2017 18:23:23 +0000 (11:23 -0700)
committerOliver Kurth <okurth@vmware.com>
Fri, 15 Sep 2017 18:23:23 +0000 (11:23 -0700)
Mac compiler is picky about an int->enum conversion, and requires
a typecast.

open-vm-tools/lib/include/pollImpl.h

index 366f8a2ea0f138d77021d8bc1fc0a4f9dfd6962e..3bed11c0e2d91c39f8005cef8905276f4f131db6 100644 (file)
@@ -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;
 }