[Scummvm-git-logs] scummvm master -> e4ec99fc626c265b05a2569a0cffd4e266ffd1b6

orgads noreply at scummvm.org
Sun Apr 9 20:55:37 UTC 2023


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
e4ec99fc62 GUI: Fix GCC/MinGW warning


Commit: e4ec99fc626c265b05a2569a0cffd4e266ffd1b6
    https://github.com/scummvm/scummvm/commit/e4ec99fc626c265b05a2569a0cffd4e266ffd1b6
Author: Orgad Shaneh (orgads at gmail.com)
Date: 2023-04-09T23:55:16+03:00

Commit Message:
GUI: Fix GCC/MinGW warning

textviewer.cpp:84:64: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'int64' {aka 'long long int'} [-Wformat=]
   84 |         warning("TextViewerDialog::loadFile(): File size is: %ld", stream->size());
      |                                                              ~~^   ~~~~~~~~~~~~~~
      |                                                                |               |
      |                                                                long int        int64 {aka long long int}
      |                                                              %lld

Changed paths:
    gui/textviewer.cpp


diff --git a/gui/textviewer.cpp b/gui/textviewer.cpp
index ecefb5262c9..0dac5045e8a 100644
--- a/gui/textviewer.cpp
+++ b/gui/textviewer.cpp
@@ -81,7 +81,7 @@ bool TextViewerDialog::loadFile(Common::String &fname) {
 		return false;
 	}
 
-	warning("TextViewerDialog::loadFile(): File size is: %ld", stream->size());
+	warning("TextViewerDialog::loadFile(): File size is: %ld", long(stream->size()));
 
 	_linesArray.clear();
 




More information about the Scummvm-git-logs mailing list