Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
David Goulet
Tor
Commits
e6ac85a8
Commit
e6ac85a8
authored
May 05, 2004
by
Nick Mathewson
⛰
Browse files
Fix compilation warnings on 64-bit platforms
svn:r1793
parent
0ce8901a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/or/test.c
View file @
e6ac85a8
...
...
@@ -479,16 +479,16 @@ test_util() {
smartlist_add
(
sl
,
(
void
*
)
2
);
smartlist_add
(
sl
,
(
void
*
)
3
);
smartlist_add
(
sl
,
(
void
*
)
4
);
test_eq
(
2
,
(
int
)
smartlist_del_keeporder
(
sl
,
1
));
test_eq
(
(
void
*
)
2
,
smartlist_del_keeporder
(
sl
,
1
));
smartlist_insert
(
sl
,
1
,
(
void
*
)
22
);
smartlist_insert
(
sl
,
0
,
(
void
*
)
0
);
smartlist_insert
(
sl
,
5
,
(
void
*
)
555
);
test_eq
(
0
,
(
int
)
smartlist_get
(
sl
,
0
));
test_eq
(
1
,
(
int
)
smartlist_get
(
sl
,
1
));
test_eq
(
22
,
(
int
)
smartlist_get
(
sl
,
2
));
test_eq
(
3
,
(
int
)
smartlist_get
(
sl
,
3
));
test_eq
(
4
,
(
int
)
smartlist_get
(
sl
,
4
));
test_eq
(
555
,
(
int
)
smartlist_get
(
sl
,
5
));
test_eq
(
(
void
*
)
0
,
smartlist_get
(
sl
,
0
));
test_eq
(
(
void
*
)
1
,
smartlist_get
(
sl
,
1
));
test_eq
(
(
void
*
)
22
,
smartlist_get
(
sl
,
2
));
test_eq
(
(
void
*
)
3
,
smartlist_get
(
sl
,
3
));
test_eq
(
(
void
*
)
4
,
smartlist_get
(
sl
,
4
));
test_eq
(
(
void
*
)
555
,
smartlist_get
(
sl
,
5
));
/* XXXX test older functions. */
smartlist_free
(
sl
);
}
...
...
Write
Preview
Supports
Markdown
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