summaryrefslogtreecommitdiff
path: root/src/xserver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/xserver.cpp')
-rw-r--r--src/xserver.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/xserver.cpp b/src/xserver.cpp
index 081e5f5..9d3706d 100644
--- a/src/xserver.cpp
+++ b/src/xserver.cpp
@@ -425,10 +425,11 @@ static int _x_error_handler(Display *dpy, XErrorEvent *err)
break;
}
- ADD_FAILURE() << "XError received: " << error.str() << ", request " <<
- (int)err->request_code << "(" << (int)err->minor_code << "), detail: "
- << err->resourceid << "\nThis error handler is likely to be triggered "
- "more than once.\nCheck the first error for the real error";
+ ADD_FAILURE() << "XError received: " << error.str() << ", request "
+ << static_cast<int>(err->request_code) << "(" << static_cast<int>(err->minor_code)
+ << "), detail: " << err->resourceid
+ << "\nThis error handler is likely to be triggered "
+ "more than once.\nCheck the first error for the real error";
return 0;
}