linux-qubasis
linux oasis port as a qubes template
git clone https://9o.is/git/linux-qubasis.git
0001-Remove-unnecessary-use-of-long-double-constants.patch
(2078B)
1 From e74cd485038256cb170a102413d76ecaac61cf5b Mon Sep 17 00:00:00 2001
2 From: Michael Forney <mforney@mforney.org>
3 Date: Mon, 6 Sep 2021 18:29:49 -0700
4 Subject: [PATCH] Remove unnecessary use of long double constants
5
6 These constants are immediately converted to double so there is no
7 reason to make them long double.
8 ---
9 src/fcdefault.c | 2 +-
10 src/fcfreetype.c | 4 ++--
11 src/fcxml.c | 4 ++--
12 3 files changed, 5 insertions(+), 5 deletions(-)
13
14 diff --git a/src/fcdefault.c b/src/fcdefault.c
15 index f3addca..be00c48 100644
16 --- a/src/fcdefault.c
17 +++ b/src/fcdefault.c
18 @@ -263,7 +263,7 @@ FcDefaultSubstitute (FcPattern *pattern)
19 if (FcPatternObjectGetRange (pattern, FC_SIZE_OBJECT, 0, &r) == FcResultMatch && FcRangeGetDouble (r, &b, &e))
20 size = (b + e) * .5;
21 else
22 - size = 12.0L;
23 + size = 12.0;
24 }
25 if (FcPatternObjectGetDouble (pattern, FC_SCALE_OBJECT, 0, &scale) != FcResultMatch)
26 scale = 1.0;
27 diff --git a/src/fcfreetype.c b/src/fcfreetype.c
28 index 07978cf..0845232 100644
29 --- a/src/fcfreetype.c
30 +++ b/src/fcfreetype.c
31 @@ -1811,8 +1811,8 @@ FcFreeTypeQueryFaceInternal (const FT_Face face,
32 FcRange *r;
33
34 /* usLowerPointSize and usUpperPointSize is actually twips */
35 - lower_size = os2->usLowerOpticalPointSize / 20.0L;
36 - upper_size = os2->usUpperOpticalPointSize / 20.0L;
37 + lower_size = os2->usLowerOpticalPointSize / 20.0;
38 + upper_size = os2->usUpperOpticalPointSize / 20.0;
39
40 if (lower_size == upper_size)
41 {
42 diff --git a/src/fcxml.c b/src/fcxml.c
43 index 7797502..f6516ae 100644
44 --- a/src/fcxml.c
45 +++ b/src/fcxml.c
46 @@ -1493,7 +1493,7 @@ FcParseRange (FcConfigParse *parse)
47 FcRange *r;
48 FcChar32 n[2] = {0, 0};
49 int count = 1;
50 - double d[2] = {0.0L, 0.0L};
51 + double d[2] = {0.0, 0.0};
52 FcBool dflag = FcFalse;
53
54 while ((vstack = FcVStackPeek (parse)))
55 @@ -1519,7 +1519,7 @@ FcParseRange (FcConfigParse *parse)
56 default:
57 FcConfigMessage (parse, FcSevereError, "invalid element in range");
58 if (dflag)
59 - d[count] = 0.0L;
60 + d[count] = 0.0;
61 else
62 n[count] = 0;
63 break;
64 --
65 2.32.0
66