unsigned int -> size_t

This commit is contained in:
leitner
2007-10-17 16:23:01 +00:00
parent 67a8f54b63
commit 34c8462dea
7 changed files with 45 additions and 5 deletions

View File

@@ -8,7 +8,7 @@
* bytes of space, copies the old string into the new space, frees the
* old space, and returns 1. Note that this changes sa.s. */
int stralloc_ready(stralloc *sa,size_t len) {
register int wanted=len+(len>>3)+30; /* heuristic from djb */
register size_t wanted=len+(len>>3)+30; /* heuristic from djb */
if (!sa->s || sa->a<len) {
register char* tmp;
if (!(tmp=realloc(sa->s,wanted)))