Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
aa583636
Kaydet (Commit)
aa583636
authored
May 15, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1202771 Operands don't affect result
Change-Id: I6a0228594d31cda252f299cad55469ad02c6b353
üst
63300396
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
11 deletions
+2
-11
cff.cxx
vcl/source/fontsubset/cff.cxx
+2
-11
No files found.
vcl/source/fontsubset/cff.cxx
Dosyayı görüntüle @
aa583636
...
@@ -678,16 +678,7 @@ void CffSubsetterContext::writeType1Val( ValType aVal)
...
@@ -678,16 +678,7 @@ void CffSubsetterContext::writeType1Val( ValType aVal)
U8
*
pOut
=
mpWritePtr
;
U8
*
pOut
=
mpWritePtr
;
int
nInt
=
static_cast
<
int
>
(
aVal
);
int
nInt
=
static_cast
<
int
>
(
aVal
);
static
const
int
nOutCharstrType
=
1
;
if
(
(
nInt
>=
-
107
)
&&
(
nInt
<=
+
107
))
{
if
(
(
nInt
!=
aVal
)
&&
(
nOutCharstrType
==
2
))
{
// numtype==255 means int32 for Type1, but 16.16 for Type2 charstrings!!!
*
(
pOut
++
)
=
255
;
// Fixed 16.16
*
(
pOut
++
)
=
static_cast
<
U8
>
(
nInt
>>
8
);
*
(
pOut
++
)
=
static_cast
<
U8
>
(
nInt
);
nInt
=
static_cast
<
int
>
(
aVal
*
0x10000
)
&
0xFFFF
;
*
(
pOut
++
)
=
static_cast
<
U8
>
(
nInt
>>
8
);
*
(
pOut
++
)
=
static_cast
<
U8
>
(
nInt
);
}
else
if
(
(
nInt
>=
-
107
)
&&
(
nInt
<=
+
107
))
{
*
(
pOut
++
)
=
static_cast
<
U8
>
(
nInt
+
139
);
// -107..+107
*
(
pOut
++
)
=
static_cast
<
U8
>
(
nInt
+
139
);
// -107..+107
}
else
if
(
(
nInt
>=
-
1131
)
&&
(
nInt
<=
+
1131
))
{
}
else
if
(
(
nInt
>=
-
1131
)
&&
(
nInt
<=
+
1131
))
{
if
(
nInt
>=
0
)
if
(
nInt
>=
0
)
...
@@ -696,7 +687,7 @@ void CffSubsetterContext::writeType1Val( ValType aVal)
...
@@ -696,7 +687,7 @@ void CffSubsetterContext::writeType1Val( ValType aVal)
nInt
=
64148
-
nInt
;
// -108..-1131
nInt
=
64148
-
nInt
;
// -108..-1131
*
(
pOut
++
)
=
static_cast
<
U8
>
(
nInt
>>
8
);
*
(
pOut
++
)
=
static_cast
<
U8
>
(
nInt
>>
8
);
*
(
pOut
++
)
=
static_cast
<
U8
>
(
nInt
);
*
(
pOut
++
)
=
static_cast
<
U8
>
(
nInt
);
}
else
if
(
nOutCharstrType
==
1
)
{
}
else
{
// numtype==255 means int32 for Type1, but 16.16 for Type2 charstrings!!!
// numtype==255 means int32 for Type1, but 16.16 for Type2 charstrings!!!
*
(
pOut
++
)
=
255
;
*
(
pOut
++
)
=
255
;
*
(
pOut
++
)
=
static_cast
<
U8
>
(
nInt
>>
24
);
*
(
pOut
++
)
=
static_cast
<
U8
>
(
nInt
>>
24
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment