Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LSH
lsh
Commits
0dabfc5f
Commit
0dabfc5f
authored
Jan 28, 1999
by
Niels Möller
Browse files
* src/parse.c (parse_uint8): Use unsigned for the result.
Rev: src/parse.c:1.23 Rev: src/parse.h:1.16
parent
60c13e9e
Changes
2
Show whitespace changes
Inline
Side-by-side
src/parse.c
View file @
0dabfc5f
...
...
@@ -105,7 +105,7 @@ int parse_sub_buffer(struct simple_buffer *buffer,
return
1
;
}
int
parse_uint8
(
struct
simple_buffer
*
buffer
,
int
*
result
)
int
parse_uint8
(
struct
simple_buffer
*
buffer
,
unsigned
*
result
)
{
if
(
!
LEFT
)
return
0
;
...
...
src/parse.h
View file @
0dabfc5f
...
...
@@ -62,7 +62,7 @@ struct lsh_string *parse_string_copy(struct simple_buffer *buffer);
int
parse_sub_buffer
(
struct
simple_buffer
*
buffer
,
struct
simple_buffer
*
subbuffer
);
int
parse_uint8
(
struct
simple_buffer
*
buffer
,
int
*
result
);
int
parse_uint8
(
struct
simple_buffer
*
buffer
,
unsigned
*
result
);
/* Returns 1 on success, 0 on error, and -1 at end of buffer */
int
parse_utf8
(
struct
simple_buffer
*
buffer
,
UINT32
*
result
);
...
...
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