forked from NetBSD/pkgsrc
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
$NetBSD: distinfo,v 1.15 2022/04/25 13:36:38 tnn Exp $ | ||
$NetBSD: distinfo,v 1.16 2022/04/25 17:58:29 tnn Exp $ | ||
|
||
BLAKE2s (kirigami2-5.93.0.tar.xz) = 38110b84247cc6a0369868cbad228680fdd62ce0846cf973ceb53fa981872233 | ||
SHA512 (kirigami2-5.93.0.tar.xz) = 372d464a79dafa061e4c07528c4765445b89988bbbf345019a8f544c4012a0c64abf8a07d4b97b4d1874af6753cb357b4f11d958face1ce17b3de8e6daddded2 | ||
Size (kirigami2-5.93.0.tar.xz) = 355100 bytes | ||
SHA1 (patch-src_icon.cpp) = 5d1e8ffe75903807f8404685cbee9c435be123bb | ||
SHA1 (patch-src_imagecolors.cpp) = 7eabf723dcac39f7befa9be585fb753868c42f7e | ||
SHA1 (patch-src_imagecolors.cpp) = f62dc8d0713fac1761a948da74fef7436c0d0ec0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
$NetBSD: patch-src_imagecolors.cpp,v 1.3 2022/04/25 13:36:38 tnn Exp $ | ||
$NetBSD: patch-src_imagecolors.cpp,v 1.4 2022/04/25 17:58:29 tnn Exp $ | ||
|
||
Explicitly use std::pow. | ||
|
||
--- src/imagecolors.cpp.orig 2021-03-06 16:26:33.000000000 +0000 | ||
--- src/imagecolors.cpp.orig 2022-04-02 10:23:09.000000000 +0000 | ||
+++ src/imagecolors.cpp | ||
@@ -25,6 +25,8 @@ | ||
|
||
@@ -26,6 +26,8 @@ | ||
#include "loggingcategory.h" | ||
#include <cmath> | ||
|
||
+using std::pow; | ||
+ | ||
#define return_fallback(value) if (m_imageData.m_samples.size() == 0) {\ | ||
return value;\ | ||
} | ||
#define return_fallback(value) \ | ||
if (m_imageData.m_samples.size() == 0) { \ | ||
return value; \ |