瀏覽代碼

Merge pull request #77957 from akien-mga/x11-fix-vformat-gcc10

X11: Fix vformat ambiguous int types for GCC 10 (again)
Rémi Verschelde 2 年之前
父節點
當前提交
a69730f49d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      platform/linuxbsd/x11/display_server_x11.cpp

+ 1 - 1
platform/linuxbsd/x11/display_server_x11.cpp

@@ -869,7 +869,7 @@ int default_window_error_handler(Display *display, XErrorEvent *error) {
 					  "\n   Major opcode of failed request: %d"
 					  "\n   Serial number of failed request: %d"
 					  "\n   Current serial number in output stream: %d",
-			String::utf8(message), error->request_code, error->minor_code, error->serial));
+			String::utf8(message), (uint64_t)error->request_code, (uint64_t)error->minor_code, (uint64_t)error->serial));
 	return 0;
 }