Browse Source

Fix warning in Linux crash handler on 32-bit

Rémi Verschelde 5 năm trước cách đây
mục cha
commit
3f8c93dffe
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      platform/x11/crash_handler_x11.cpp

+ 1 - 1
platform/x11/crash_handler_x11.cpp

@@ -107,7 +107,7 @@ static void handle_crash(int sig) {
 				output.erase(output.length() - 1, 1);
 			}
 
-			fprintf(stderr, "[%ld] %s (%ls)\n", i, fname, output.c_str());
+			fprintf(stderr, "[%ld] %s (%ls)\n", (long int)i, fname, output.c_str());
 		}
 
 		free(strings);