Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Sam Joan Roque-Worcel
wine
Commits
4282fc12
Commit
4282fc12
authored
16 years ago
by
Alexandre Julliard
Browse files
Options
Downloads
Patches
Plain Diff
msvcrt/tests: Use unsigned int instead of size_t for the malloc tests.
parent
9e070a61
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/msvcrt/tests/heap.c
+5
-4
5 additions, 4 deletions
dlls/msvcrt/tests/heap.c
with
5 additions
and
4 deletions
dlls/msvcrt/tests/heap.c
+
5
−
4
View file @
4282fc12
...
...
@@ -29,7 +29,7 @@ static void * (*p_aligned_offset_malloc)(size_t,size_t,size_t) = NULL;
static
void
*
(
*
p_aligned_realloc
)(
void
*
,
size_t
,
size_t
)
=
NULL
;
static
void
*
(
*
p_aligned_offset_realloc
)(
void
*
,
size_t
,
size_t
,
size_t
)
=
NULL
;
static
void
test_aligned_malloc
(
size_t
size
,
size_
t
alignment
)
static
void
test_aligned_malloc
(
unsigned
int
size
,
unsigned
in
t
alignment
)
{
void
*
mem
;
...
...
@@ -57,7 +57,7 @@ static void test_aligned_malloc(size_t size, size_t alignment)
ok
(
errno
==
EINVAL
,
"_aligned_malloc(%d, %d) errno: %d != %d
\n
"
,
size
,
alignment
,
errno
,
EINVAL
);
}
static
void
test_aligned_offset_malloc
(
size_t
size
,
size_
t
alignment
,
size_
t
offset
)
static
void
test_aligned_offset_malloc
(
unsigned
int
size
,
unsigned
in
t
alignment
,
unsigned
in
t
offset
)
{
void
*
mem
;
...
...
@@ -88,7 +88,7 @@ static void test_aligned_offset_malloc(size_t size, size_t alignment, size_t off
ok
(
errno
==
EINVAL
,
"_aligned_offset_malloc(%d, %d, %d) errno: %d != %d
\n
"
,
size
,
alignment
,
offset
,
errno
,
EINVAL
);
}
static
void
test_aligned_realloc
(
size_t
size1
,
size_t
size2
,
size_
t
alignment
)
static
void
test_aligned_realloc
(
unsigned
int
size1
,
unsigned
int
size2
,
unsigned
in
t
alignment
)
{
void
*
mem
,
*
mem1
,
*
mem2
;
...
...
@@ -160,7 +160,8 @@ static void test_aligned_realloc(size_t size1, size_t size2, size_t alignment)
ok
(
errno
==
EINVAL
,
"_aligned_malloc(%d, %d) errno: %d != %d
\n
"
,
size1
,
alignment
,
errno
,
EINVAL
);
}
static
void
test_aligned_offset_realloc
(
size_t
size1
,
size_t
size2
,
size_t
alignment
,
size_t
offset
)
static
void
test_aligned_offset_realloc
(
unsigned
int
size1
,
unsigned
int
size2
,
unsigned
int
alignment
,
unsigned
int
offset
)
{
void
*
mem
,
*
mem1
,
*
mem2
;
...
...
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