fix typo in buffer_GETC
This commit is contained in:
parent
f7c6b5b3ee
commit
734b248bdc
1
CHANGES
1
CHANGES
@ -13,6 +13,7 @@
|
|||||||
add html to textcode ('<' to '<' etc)
|
add html to textcode ('<' to '<' etc)
|
||||||
add fmt_human and fmt_humank (format numbers ala ls -H/-h)
|
add fmt_human and fmt_humank (format numbers ala ls -H/-h)
|
||||||
add fmt_httpdate and scan_httpdate
|
add fmt_httpdate and scan_httpdate
|
||||||
|
fix typo breaking buffer_GETC in buffer (Marcus Winkler)
|
||||||
|
|
||||||
0.14:
|
0.14:
|
||||||
avoid bus errors in byte_copy
|
avoid bus errors in byte_copy
|
||||||
|
2
buffer.h
2
buffer.h
@ -53,7 +53,7 @@ extern void buffer_seek(buffer* b,unsigned int len);
|
|||||||
#define buffer_SEEK(s,len) ( (s)->p += (len) )
|
#define buffer_SEEK(s,len) ( (s)->p += (len) )
|
||||||
|
|
||||||
#define buffer_GETC(s,c) \
|
#define buffer_GETC(s,c) \
|
||||||
( ((s)->p < (s>->n) \
|
( ((s)->p < (s)->n) \
|
||||||
? ( *(c) = *buffer_PEEK(s), buffer_SEEK((s),1), 1 ) \
|
? ( *(c) = *buffer_PEEK(s), buffer_SEEK((s),1), 1 ) \
|
||||||
: buffer_get((s),(c),1) \
|
: buffer_get((s),(c),1) \
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user