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
ed26a93b
Kaydet (Commit)
ed26a93b
authored
Ock 18, 2013
tarafından
Luboš Luňák
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
avoid warning about a comparison being always true
Change-Id: Ie0bd47a16af56b7d3ae070d5b82ec46ed21834c0
üst
1efe9a15
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
string.hxx
sal/inc/rtl/string.hxx
+2
-0
ustring.hxx
sal/inc/rtl/ustring.hxx
+2
-0
No files found.
sal/inc/rtl/string.hxx
Dosyayı görüntüle @
ed26a93b
...
@@ -1522,7 +1522,9 @@ public:
...
@@ -1522,7 +1522,9 @@ public:
*/
*/
static
OString
number
(
unsigned
long
ll
,
sal_Int16
radix
=
10
)
static
OString
number
(
unsigned
long
ll
,
sal_Int16
radix
=
10
)
{
{
#if SAL_TYPES_SIZEOFLONG == 8
assert
(
ll
<=
SAL_MAX_INT64
);
// valueOfInt64 may not be able to handle the highest bit
assert
(
ll
<=
SAL_MAX_INT64
);
// valueOfInt64 may not be able to handle the highest bit
#endif
sal_Char
aBuf
[
RTL_STR_MAX_VALUEOFINT64
];
sal_Char
aBuf
[
RTL_STR_MAX_VALUEOFINT64
];
rtl_String
*
pNewData
=
0
;
rtl_String
*
pNewData
=
0
;
rtl_string_newFromStr_WithLength
(
&
pNewData
,
aBuf
,
rtl_str_valueOfInt64
(
aBuf
,
ll
,
radix
)
);
rtl_string_newFromStr_WithLength
(
&
pNewData
,
aBuf
,
rtl_str_valueOfInt64
(
aBuf
,
ll
,
radix
)
);
...
...
sal/inc/rtl/ustring.hxx
Dosyayı görüntüle @
ed26a93b
...
@@ -2156,7 +2156,9 @@ public:
...
@@ -2156,7 +2156,9 @@ public:
*/
*/
static
OUString
number
(
unsigned
long
ll
,
sal_Int16
radix
=
10
)
static
OUString
number
(
unsigned
long
ll
,
sal_Int16
radix
=
10
)
{
{
#if SAL_TYPES_SIZEOFLONG == 8
assert
(
ll
<=
SAL_MAX_INT64
);
// valueOfInt64 may not be able to handle the highest bit
assert
(
ll
<=
SAL_MAX_INT64
);
// valueOfInt64 may not be able to handle the highest bit
#endif
sal_Unicode
aBuf
[
RTL_STR_MAX_VALUEOFINT64
];
sal_Unicode
aBuf
[
RTL_STR_MAX_VALUEOFINT64
];
rtl_uString
*
pNewData
=
0
;
rtl_uString
*
pNewData
=
0
;
rtl_uString_newFromStr_WithLength
(
&
pNewData
,
aBuf
,
rtl_ustr_valueOfInt64
(
aBuf
,
ll
,
radix
)
);
rtl_uString_newFromStr_WithLength
(
&
pNewData
,
aBuf
,
rtl_ustr_valueOfInt64
(
aBuf
,
ll
,
radix
)
);
...
...
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