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
7c82d8a5
Kaydet (Commit)
7c82d8a5
authored
Agu 26, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Avoid undefined left shift of negative value
Change-Id: I8678215526990158215544c17aa9cf3aa178da01
üst
69638bea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
wrtw8esh.cxx
sw/source/filter/ww8/wrtw8esh.cxx
+1
-1
No files found.
sw/source/filter/ww8/wrtw8esh.cxx
Dosyayı görüntüle @
7c82d8a5
...
@@ -2170,7 +2170,7 @@ sal_Int32 SwBasicEscherEx::ToFract16(sal_Int32 nVal, sal_uInt32 nMax) const
...
@@ -2170,7 +2170,7 @@ sal_Int32 SwBasicEscherEx::ToFract16(sal_Int32 nVal, sal_uInt32 nMax) const
// negative fraction does not have "-0", fractional part is always
// negative fraction does not have "-0", fractional part is always
// positive: -0.4 represented as -1 + 0.6
// positive: -0.4 represented as -1 + 0.6
sal_Int32
const
nDiv
=
(
nVal
/
sal_Int32
(
nMax
))
-
1
;
sal_Int32
const
nDiv
=
(
nVal
/
sal_Int32
(
nMax
))
-
1
;
sal_uInt32
nMSVal
=
(
nDiv
<<
16
)
&
0xffff0000
;
sal_uInt32
nMSVal
=
(
sal_uInt32
(
nDiv
)
<<
16
)
&
0xffff0000
;
nMSVal
+=
(
nVal
*
65536
)
/
sal_Int32
(
nMax
)
+
(
-
nDiv
*
65536
);
nMSVal
+=
(
nVal
*
65536
)
/
sal_Int32
(
nMax
)
+
(
-
nDiv
*
65536
);
return
nMSVal
;
return
nMSVal
;
}
}
...
...
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