projects
/
jansson.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd72efb
)
load: Change buffer_pos to be a size_t
author
Janne Kulmala
<janne.t.kulmala@tut.fi>
Tue, 17 Apr 2012 08:05:12 +0000
(11:05 +0300)
committer
Petri Lehtinen
<petri@digip.org>
Wed, 18 Apr 2012 18:21:17 +0000
(21:21 +0300)
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.
src/load.c
patch
|
blob
|
history
diff --git
a/src/load.c
b/src/load.c
index
a904599
..
9ad4752
100644
(file)
--- a/
src/load.c
+++ b/
src/load.c
@@
-48,7
+48,7
@@
typedef struct {
get_func get;
void *data;
char buffer[5];
-
in
t buffer_pos;
+
size_
t buffer_pos;
int state;
int line;
int column, last_column;