Changeset 35b6eb9 for dict.c


Ignore:
Timestamp:
Feb 11, 2011, 4:31:39 PM (10 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.8, release-1.9
Children:
ddbbcffa
Parents:
96828e4
git-author:
Anders Kaseorg <andersk@mit.edu> (08/27/09 00:52:03)
git-committer:
Anders Kaseorg <andersk@mit.edu> (02/11/11 16:31:39)
Message:
Replace owl_realloc with g_renew.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Reviewed-by: Karl Ramm <kcr@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • dict.c

    r96828e4 r35b6eb9  
    9696    if (d->size + 1 > d->avail) {
    9797      int avail = MAX(d->avail * GROWBY, d->size + 1);
    98       d->els = owl_realloc(d->els, avail * sizeof(owl_dict_el));
     98      d->els = g_renew(owl_dict_el, d->els, avail);
    9999      d->avail = avail;
    100100      if (d->els==NULL) return(-1);
Note: See TracChangeset for help on using the changeset viewer.