pkgsrc-Changes archive

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

CVS commit: pkgsrc/editors/obby



Module Name:    pkgsrc
Committed By:   joerg
Date:           Fri Mar 27 20:58:12 UTC 2020

Modified Files:
        pkgsrc/editors/obby: distinfo
Added Files:
        pkgsrc/editors/obby/patches: patch-src_colour.cpp

Log Message:
Resolve conflicting type resolution for std::abs.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 pkgsrc/editors/obby/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/editors/obby/patches/patch-src_colour.cpp

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/editors/obby/distinfo
diff -u pkgsrc/editors/obby/distinfo:1.4 pkgsrc/editors/obby/distinfo:1.5
--- pkgsrc/editors/obby/distinfo:1.4    Wed Feb 10 08:09:37 2016
+++ pkgsrc/editors/obby/distinfo        Fri Mar 27 20:58:12 2020
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.4 2016/02/10 08:09:37 mef Exp $
+$NetBSD: distinfo,v 1.5 2020/03/27 20:58:12 joerg Exp $
 
 SHA1 (obby-0.4.8.tar.gz) = 49de7813bb56b249d2e6f0b6b014ae3b850d8987
 RMD160 (obby-0.4.8.tar.gz) = 9b45340938cd0a85e379deab553be7396851366b
 SHA512 (obby-0.4.8.tar.gz) = 39cd01e74f8df805bd6f077afab023f70f6da16d421dd0d12abc82972a9ec3e2563cc4ef6bf99c74b59f1c96e18eb3d5065f8b07add8ecb56c26601715f184d0
 Size (obby-0.4.8.tar.gz) = 530525 bytes
 SHA1 (patch-aa) = 044bf10cfa88475b8d2d25d349bf1c01cd853b05
+SHA1 (patch-src_colour.cpp) = 6def696ab0de7ccc8b034972a9738283e9b60fa6

Added files:

Index: pkgsrc/editors/obby/patches/patch-src_colour.cpp
diff -u /dev/null pkgsrc/editors/obby/patches/patch-src_colour.cpp:1.1
--- /dev/null   Fri Mar 27 20:58:12 2020
+++ pkgsrc/editors/obby/patches/patch-src_colour.cpp    Fri Mar 27 20:58:12 2020
@@ -0,0 +1,17 @@
+$NetBSD: patch-src_colour.cpp,v 1.1 2020/03/27 20:58:12 joerg Exp $
+
+--- src/colour.cpp.orig        2020-03-27 18:01:51.643167816 +0000
++++ src/colour.cpp
+@@ -47,9 +47,9 @@ unsigned int obby::colour::get_blue() co
+ bool obby::colour::similar_colour(const colour& colour) const
+ {
+       // TODO: Convert to HSV for better checking
+-      return abs(m_red - colour.m_red) +
+-             abs(m_green - colour.m_green) +
+-             abs(m_blue - colour.m_blue) < 32;
++      return abs(int(m_red - colour.m_red)) +
++             abs(int(m_green - colour.m_green)) +
++             abs(int(m_blue - colour.m_blue)) < 32;
+ }
+ 
+ std::string serialise::default_context_to<obby::colour>::



Home | Main Index | Thread Index | Old Index