mirror of
https://github.com/json-c/json-c.git
synced 2026-03-28 17:39:07 +08:00
* Rename min and max so we can never clash with C or C++ std library
Ian Atha, thatha at yahoo-inc dot com git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@43 327403b1-1117-474d-bef2-5cb71233fd97
This commit is contained in:
@@ -49,7 +49,7 @@ int printbuf_memappend(struct printbuf *p, const char *buf, int size)
|
||||
{
|
||||
char *t;
|
||||
if(p->size - p->bpos <= size) {
|
||||
int new_size = max(p->size * 2, p->bpos + size + 8);
|
||||
int new_size = json_max(p->size * 2, p->bpos + size + 8);
|
||||
#ifdef PRINTBUF_DEBUG
|
||||
MC_DEBUG("printbuf_memappend: realloc "
|
||||
"bpos=%d wrsize=%d old_size=%d new_size=%d\n",
|
||||
|
||||
Reference in New Issue
Block a user