ports/x11/wmi/patches/patch-src_kernel_cpp

13 lines
572 B
Text

find_first_of returns npos, which is a size_t.
--- src/kernel.cpp.orig Tue Feb 24 12:35:42 2015
+++ src/kernel.cpp Tue Feb 24 12:36:09 2015
@@ -832,7 +832,7 @@ void Kernel::handlePropertyNotify(XPropertyEvent *even
Atoms::WMI_ACTIONCMD, &actionCmd))
{
string bind, arg;
- unsigned int pos = actionCmd.find_first_of('+');
+ size_t pos = actionCmd.find_first_of('+');
if (pos != string::npos) {
bind = actionCmd.substr(0, pos);
arg = actionCmd.substr(pos + 1);