pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/emulators/melonds Fix C++ narrowing rule violation.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e5116ff109f3
branches:  trunk
changeset: 345970:e5116ff109f3
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sun Dec 22 22:25:21 2019 +0000

description:
Fix C++ narrowing rule violation.

diffstat:

 emulators/melonds/distinfo                             |   3 ++-
 emulators/melonds/patches/patch-src_libui__sdl_OSD.cpp |  15 +++++++++++++++
 2 files changed, 17 insertions(+), 1 deletions(-)

diffs (32 lines):

diff -r 11745898b002 -r e5116ff109f3 emulators/melonds/distinfo
--- a/emulators/melonds/distinfo        Sun Dec 22 22:24:51 2019 +0000
+++ b/emulators/melonds/distinfo        Sun Dec 22 22:25:21 2019 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.1 2019/09/13 10:12:07 nia Exp $
+$NetBSD: distinfo,v 1.2 2019/12/22 22:25:21 joerg Exp $
 
 SHA1 (melonDS-0.8.3.tar.gz) = 9c1a71a05bfa041b727effe6180f6f7b590713a5
 RMD160 (melonDS-0.8.3.tar.gz) = d0753d1a8e959b76f77eac31babbc2b32b2940c4
 SHA512 (melonDS-0.8.3.tar.gz) = 4fed77abd231812d2f9ddb19a7fe6e808fb8e92035bb2fea220032b7c0a98671b4fd79ef0f7c7c559e92f3d1875ea119afaa581be2edacaa10f4437620eecd76
 Size (melonDS-0.8.3.tar.gz) = 965501 bytes
 SHA1 (patch-src_libui__sdl_LAN__PCap.cpp) = 1fd806b6b446622e5d214091e96aac3d6eec8490
+SHA1 (patch-src_libui__sdl_OSD.cpp) = 34c386cd5babf0f7dfb82f29b3f7255039ce7e15
diff -r 11745898b002 -r e5116ff109f3 emulators/melonds/patches/patch-src_libui__sdl_OSD.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/melonds/patches/patch-src_libui__sdl_OSD.cpp    Sun Dec 22 22:25:21 2019 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_libui__sdl_OSD.cpp,v 1.1 2019/12/22 22:25:21 joerg Exp $
+
+--- src/libui_sdl/OSD.cpp.orig 2019-12-22 21:44:07.741122541 +0000
++++ src/libui_sdl/OSD.cpp
+@@ -419,8 +419,8 @@ void Update(bool opengl, uiAreaDrawParam
+                 item.DrawBitmapLoaded = true;
+             }
+ 
+-            uiRect rc_src = {0, 0, item.Width, item.Height};
+-            uiRect rc_dst = {kOSDMargin, y, item.Width, item.Height};
++            uiRect rc_src = {0, 0, (int)item.Width, (int)item.Height};
++            uiRect rc_dst = {kOSDMargin, (int)y, (int)item.Width, (int)item.Height};
+ 
+             uiDrawBitmapDraw(params->Context, item.DrawBitmap, &rc_src, &rc_dst, 0);
+         }



Home | Main Index | Thread Index | Old Index