Explicitly cast FIONBIO constant to int to suppress compiler warning on

some platforms.
This commit is contained in:
Christopher Kohlhoff 2011-02-08 18:52:58 +11:00
parent b3206af5f2
commit 9690ae5014

View File

@ -45,7 +45,7 @@ public:
// Get the name of the IO control command.
int name() const
{
return FIONBIO;
return static_cast<int>(FIONBIO);
}
// Set the value of the I/O control command.
@ -95,7 +95,7 @@ public:
// Get the name of the IO control command.
int name() const
{
return FIONREAD;
return static_cast<int>(FIONREAD);
}
// Set the value of the I/O control command.