Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
74673f8f
Commit
74673f8f
authored
Aug 26, 2009
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test/dictionary: Be nicer on LP64, and avoid a warning.
LLP64, well, later.
parent
1874e432
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
src/test/dictionary.c
src/test/dictionary.c
+5
-4
No files found.
src/test/dictionary.c
View file @
74673f8f
/*****************************************************************************
/*****************************************************************************
* dictionary.c: Tests for vlc_dictionary_t
* dictionary.c: Tests for vlc_dictionary_t
*****************************************************************************
*****************************************************************************
...
@@ -36,7 +37,7 @@ static void test_dictionary_validity (vlc_dictionary_t * p_dict, const char ** o
...
@@ -36,7 +37,7 @@ static void test_dictionary_validity (vlc_dictionary_t * p_dict, const char ** o
{
{
/* Test values and keys now */
/* Test values and keys now */
char
**
keys
=
vlc_dictionary_all_keys
(
p_dict
);
char
**
keys
=
vlc_dictionary_all_keys
(
p_dict
);
int
i
,
j
;
long
i
,
j
;
assert
(
keys
);
assert
(
keys
);
...
@@ -57,7 +58,7 @@ static void test_dictionary_validity (vlc_dictionary_t * p_dict, const char ** o
...
@@ -57,7 +58,7 @@ static void test_dictionary_validity (vlc_dictionary_t * p_dict, const char ** o
free
(
keys
);
free
(
keys
);
for
(
i
=
0
;
i
<
size
;
i
++
)
for
(
i
=
0
;
i
<
size
;
i
++
)
assert
(
vlc_dictionary_value_for_key
(
p_dict
,
our_keys
[
i
]
)
==
(
void
*
)
i
);
assert
(
vlc_dictionary_value_for_key
(
p_dict
,
our_keys
[
i
]
)
==
(
void
*
)
i
);
}
}
int
main
(
void
)
int
main
(
void
)
...
@@ -67,7 +68,7 @@ int main (void)
...
@@ -67,7 +68,7 @@ int main (void)
};
};
const
int
size
=
sizeof
(
our_keys
)
/
sizeof
(
our_keys
[
0
]);
const
int
size
=
sizeof
(
our_keys
)
/
sizeof
(
our_keys
[
0
]);
char
**
keys
;
char
**
keys
;
int
i
=
0
;
long
i
=
0
;
vlc_dictionary_t
dict
;
vlc_dictionary_t
dict
;
vlc_dictionary_init
(
&
dict
,
0
);
vlc_dictionary_init
(
&
dict
,
0
);
...
@@ -81,7 +82,7 @@ int main (void)
...
@@ -81,7 +82,7 @@ int main (void)
/* Insert some values */
/* Insert some values */
for
(
i
=
0
;
i
<
size
;
i
++
)
for
(
i
=
0
;
i
<
size
;
i
++
)
vlc_dictionary_insert
(
&
dict
,
our_keys
[
i
],
(
void
*
)
i
);
vlc_dictionary_insert
(
&
dict
,
our_keys
[
i
],
(
void
*
)
i
);
test_dictionary_validity
(
&
dict
,
our_keys
,
size
);
test_dictionary_validity
(
&
dict
,
our_keys
,
size
);
...
...
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