Skip to content

Commit

Permalink
load: Change buffer_pos to be a size_t
Browse files Browse the repository at this point in the history
buffer_pos should be type size_t, because it's used to store the
current position in the read buffer. Also, it never can be negative.
  • Loading branch information
Janne Kulmala authored and akheron committed Apr 18, 2012
1 parent bd72efb commit aabfd49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/load.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ typedef struct {
get_func get;
void *data;
char buffer[5];
int buffer_pos;
size_t buffer_pos;
int state;
int line;
int column, last_column;
Expand Down

0 comments on commit aabfd49

Please sign in to comment.