Commit 42fd0f85 authored by Niels Möller's avatar Niels Möller
Browse files

* src/parse.c, src/parse.h: Signedness fixes.

Rev: src/parse.c:1.26
Rev: src/parse.h:1.19
parent 1ce947b7
......@@ -199,7 +199,7 @@ int parse_bignum(struct simple_buffer *buffer, mpz_t result)
return 1;
}
int parse_atom(struct simple_buffer *buffer, int *result)
int parse_atom(struct simple_buffer *buffer, UINT32 *result)
{
UINT32 length;
UINT8 *start;
......@@ -219,7 +219,7 @@ int parse_atom(struct simple_buffer *buffer, int *result)
/* NOTE: This functions record the fact that it has read to the end of
* the buffer by setting the position to *beyond* the end of the
* buffer. */
int parse_next_atom(struct simple_buffer *buffer, int *result)
int parse_next_atom(struct simple_buffer *buffer, UINT32 *result)
{
UINT32 i;
......@@ -263,6 +263,7 @@ struct int_list *parse_atoms(struct simple_buffer *buffer, unsigned limit)
for (i = 0; i < count; i++)
{
/* FIXME: Uses int * for UINT32 * argument. */
switch(parse_next_atom(buffer, LIST(res)+i))
{
case 1:
......
......@@ -71,11 +71,11 @@ int parse_boolean(struct simple_buffer *buffer, int *result);
int parse_bignum(struct simple_buffer *buffer, mpz_t result);
int parse_atom(struct simple_buffer *buffer, int *result);
int parse_atom(struct simple_buffer *buffer, UINT32 *result);
/* Returns 1 on success, 0 on failure, and -1 at end of buffer.
* Unknown atoms sets result to zero. */
int parse_next_atom(struct simple_buffer *buffer, int *result);
int parse_next_atom(struct simple_buffer *buffer, UINT32 *result);
/* Reads a list of atoms. The buffer should hold the list body; the
* length field should already be stripped off (usually by
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment