kylin-calculator/0001-kylin-calculator-fix-some-build-warnings-and-possibl.patch
侯红勋 138eae176d kylin-calculator: fix some build warnings
and possibly integer overflows

Signed-off-by: 侯红勋 <houhongxun@kylinos.cn>
2024-04-18 16:24:29 +08:00

31 lines
969 B
Diff

From d3df65ab2644e1ebbf748a6cca541336b014a0ec Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=BE=AF=E7=BA=A2=E5=8B=8B?= <houhongxun@kylinos.cn>
Date: Thu, 18 Apr 2024 16:17:04 +0800
Subject: [PATCH] kylin-calculator: fix some build warnings and possible
integer overflows
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: 侯红勋 <houhongxun@kylinos.cn>
---
calc_programmer/calc/conversion.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/calc_programmer/calc/conversion.h b/calc_programmer/calc/conversion.h
index f15caf3..98f9d92 100644
--- a/calc_programmer/calc/conversion.h
+++ b/calc_programmer/calc/conversion.h
@@ -30,7 +30,7 @@
#define UNSIGNED_CHAR_MAX 255
#define UNSIGNED_INT_MAX 65535
#define UNSIGNED_LONG_MAX 4294967295
-#define UNSIGNED_LLONG_MAX 18446744073709551615
+#define UNSIGNED_LLONG_MAX 18446744073709551615ULL
#include <QList>
#include <QString>
--
2.43.0