Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tor Browser
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tommy Webb
Tor Browser
Commits
bdc3f9b1
Commit
bdc3f9b1
authored
13 years ago
by
Makoto Kato
Browse files
Options
Downloads
Patches
Plain Diff
Bug 738581 - fix various warning on mozilla/intl. r=smontagu
parent
34453514
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
intl/locale/src/windows/nsWin32Locale.cpp
+3
-3
3 additions, 3 deletions
intl/locale/src/windows/nsWin32Locale.cpp
intl/uconv/src/nsConverterInputStream.cpp
+1
-1
1 addition, 1 deletion
intl/uconv/src/nsConverterInputStream.cpp
intl/uconv/util/nsUCSupport.h
+1
-1
1 addition, 1 deletion
intl/uconv/util/nsUCSupport.h
with
5 additions
and
5 deletions
intl/locale/src/windows/nsWin32Locale.cpp
+
3
−
3
View file @
bdc3f9b1
...
...
@@ -647,7 +647,7 @@ nsWin32Locale::GetPlatformLocale(const nsAString& locale, LCID* winLCID)
char
locale_string
[
9
]
=
{
'\0'
,
'\0'
,
'\0'
,
'\0'
,
'\0'
,
'\0'
,
'\0'
,
'\0'
,
'\0'
};
char
*
language_code
;
char
*
country_code
;
int
i
,
j
;
size_t
i
,
j
;
// parse the locale
const
PRUnichar
*
data
;
...
...
@@ -700,7 +700,7 @@ nsWin32Locale::GetXPLocale(LCID winLCID, nsAString& locale)
}
DWORD
lang_id
,
sublang_id
;
in
t
i
,
j
;
size_
t
i
,
j
;
lang_id
=
PRIMARYLANGID
(
LANGIDFROMLCID
(
winLCID
));
sublang_id
=
SUBLANGID
(
LANGIDFROMLCID
(
winLCID
));
...
...
@@ -754,7 +754,7 @@ nsWin32Locale::GetXPLocale(LCID winLCID, nsAString& locale)
void
test_internal_tables
(
void
)
{
int
i
;
size_t
i
;
for
(
i
=
1
;
i
<
LENGTH_MAPPING_LIST
;
i
++
)
{
if
(
strcmp
(
dbg_list
[
i
-
1
].
iso_code
,
dbg_list
[
i
].
iso_code
)
>=
0
)
...
...
This diff is collapsed.
Click to expand it.
intl/uconv/src/nsConverterInputStream.cpp
+
1
−
1
View file @
bdc3f9b1
...
...
@@ -255,7 +255,7 @@ nsConverterInputStream::Fill(nsresult * aErrorCode)
"Whoa. The converter should have returned NS_OK_UDEC_MOREINPUT before this point!"
);
}
while
(
mReplacementChar
&&
NS_FAILED
(
*
aErrorCode
)
&&
mUnicharData
->
GetBufferSize
()
>
mUnicharDataLength
);
PRUint32
(
mUnicharData
->
GetBufferSize
()
)
>
mUnicharDataLength
);
mLeftOverBytes
=
mByteData
->
GetLength
()
-
srcConsumed
;
...
...
This diff is collapsed.
Click to expand it.
intl/uconv/util/nsUCSupport.h
+
1
−
1
View file @
bdc3f9b1
...
...
@@ -49,7 +49,7 @@
inline
bool
WillOverrun
(
PRUnichar
*
aDest
,
PRUnichar
*
aDestEnd
,
PRUint32
aLength
)
{
NS_ASSERTION
(
aDest
<=
aDestEnd
,
"Pointer overrun even before check"
);
return
((
aDestEnd
-
aDest
)
<
aLength
);
return
(
PRUint32
(
aDestEnd
-
aDest
)
<
aLength
);
}
#define CHECK_OVERRUN(dest, destEnd, length) (WillOverrun(dest, destEnd, length))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment