Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
f7326173
Commit
f7326173
authored
Aug 03, 2005
by
Mike McCormack
Committed by
Alexandre Julliard
Aug 03, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a gcc 4.0 -Wpointer-sign warning.
parent
46c31ada
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
wctomb.c
libs/unicode/wctomb.c
+8
-4
No files found.
libs/unicode/wctomb.c
View file @
f7326173
...
...
@@ -198,12 +198,16 @@ static int wcstombs_sbcs_slow( const struct sbcs_table *table, int flags,
{
const
unsigned
char
*
const
uni2cp_low
=
table
->
uni2cp_low
;
const
unsigned
short
*
const
uni2cp_high
=
table
->
uni2cp_high
;
const
unsigned
char
table_default
=
table
->
info
.
def_char
&
0xf
f
;
unsigned
char
de
f
;
unsigned
int
len
;
int
tmp
;
WCHAR
composed
;
if
(
!
defchar
)
defchar
=
&
table_default
;
if
(
!
defchar
)
def
=
table
->
info
.
def_char
&
0xff
;
else
def
=
*
defchar
;
if
(
!
used
)
used
=
&
tmp
;
/* avoid checking on every char */
*
used
=
0
;
...
...
@@ -225,7 +229,7 @@ static int wcstombs_sbcs_slow( const struct sbcs_table *table, int flags,
/* no mapping for the composed char, check the other flags */
if
(
flags
&
WC_DEFAULTCHAR
)
/* use the default char instead */
{
*
dst
=
*
defchar
;
*
dst
=
def
;
*
used
=
1
;
src
++
;
/* skip the non-spacing char */
srclen
--
;
...
...
@@ -242,7 +246,7 @@ static int wcstombs_sbcs_slow( const struct sbcs_table *table, int flags,
*
dst
=
uni2cp_low
[
uni2cp_high
[
wch
>>
8
]
+
(
wch
&
0xff
)];
if
(
!
is_valid_sbcs_mapping
(
table
,
flags
,
wch
,
*
dst
))
{
*
dst
=
*
defchar
;
*
dst
=
def
;
*
used
=
1
;
}
}
...
...
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