[Scummvm-git-logs] scummvm master -> e1fc76c372a9688a760cc57f64afbc146ee07b5c
bluegr
noreply at scummvm.org
Mon Dec 11 21:07:25 UTC 2023
This automated email contains information about 3 new commits which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
363330462b COMMON: Fix negation of unsigned integer warning
9e13093610 GRAPHICS: Fix empty controlled statement warning
e1fc76c372 GRAPHICS: Fix negation of unsigned integer warning
Commit: 363330462bb3398078beb475f17d86007a4b285e
https://github.com/scummvm/scummvm/commit/363330462bb3398078beb475f17d86007a4b285e
Author: elasota (1137273+elasota at users.noreply.github.com)
Date: 2023-12-11T23:07:20+02:00
Commit Message:
COMMON: Fix negation of unsigned integer warning
Changed paths:
common/formats/markdown.cpp
diff --git a/common/formats/markdown.cpp b/common/formats/markdown.cpp
index d53f5e543ac..3366b30ec28 100644
--- a/common/formats/markdown.cpp
+++ b/common/formats/markdown.cpp
@@ -2676,7 +2676,7 @@ size_t sd_autolink__email(size_t *rewind_p, SDDataBuffer *link, byte *data, size
int nb = 0, np = 0;
for (rewind = 0; rewind < max_rewind; ++rewind) {
- byte c = data[-rewind - 1];
+ byte c = *(data - rewind - 1);
if (Common::isAlnum(c))
continue;
@@ -2725,7 +2725,7 @@ size_t sd_autolink__url(size_t *rewind_p, SDDataBuffer *link, byte *data, size_t
if (size < 4 || data[1] != '/' || data[2] != '/')
return 0;
- while (rewind < max_rewind && Common::isAlpha(data[-rewind - 1]))
+ while (rewind < max_rewind && Common::isAlpha(*(data - rewind - 1)))
rewind++;
if (!sd_autolink_issafe(data - rewind, size + rewind))
Commit: 9e130936102d5703149673551bb0f25c796a5986
https://github.com/scummvm/scummvm/commit/9e130936102d5703149673551bb0f25c796a5986
Author: elasota (1137273+elasota at users.noreply.github.com)
Date: 2023-12-11T23:07:20+02:00
Commit Message:
GRAPHICS: Fix empty controlled statement warning
Changed paths:
graphics/macgui/mactext-canvas.cpp
diff --git a/graphics/macgui/mactext-canvas.cpp b/graphics/macgui/mactext-canvas.cpp
index 0226ebfa091..5952a46e724 100644
--- a/graphics/macgui/mactext-canvas.cpp
+++ b/graphics/macgui/mactext-canvas.cpp
@@ -32,8 +32,8 @@ namespace Graphics {
#define D(...) debug(__VA_ARGS__)
#define DN(...) debugN(__VA_ARGS__)
#else
-#define D(...) ;
-#define DN(...) ;
+#define D(...) ((void)0)
+#define DN(...) ((void)0)
#endif
MacTextCanvas::~MacTextCanvas() {
Commit: e1fc76c372a9688a760cc57f64afbc146ee07b5c
https://github.com/scummvm/scummvm/commit/e1fc76c372a9688a760cc57f64afbc146ee07b5c
Author: elasota (1137273+elasota at users.noreply.github.com)
Date: 2023-12-11T23:07:20+02:00
Commit Message:
GRAPHICS: Fix negation of unsigned integer warning
Changed paths:
graphics/nine_patch.cpp
diff --git a/graphics/nine_patch.cpp b/graphics/nine_patch.cpp
index f93c8e990b0..d2fb3a85c11 100644
--- a/graphics/nine_patch.cpp
+++ b/graphics/nine_patch.cpp
@@ -190,8 +190,8 @@ NinePatchBitmap::NinePatchBitmap(Graphics::ManagedSurface *bmp, bool owns_bitmap
byte palette[256 * 3];
bmp->grabPalette(palette, 0, 256);
- black = -1;
- white = -1;
+ black = (uint32)-1;
+ white = (uint32)-1;
for (int j = 0; j < 256; j++) {
byte r = palette[(j * 3) + 0];
More information about the Scummvm-git-logs
mailing list