Ignore:
Timestamp:
Oct 29, 2008, 10:31:35 PM (17 years ago)
Author:
bird
Message:

variaiable::value_alloc_len -> unsigned int.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/function.c

    r1993 r1997  
    10401040      free (result);
    10411041#else  /* CONFIG_WITH_VALUE_LENGTH */
    1042       if (len >= (unsigned int)var->value_alloc_len)
     1042      if (len >= var->value_alloc_len)
    10431043        {
    10441044# ifdef CONFIG_WITH_RDONLY_VARIABLE_VALUE
     
    10481048# endif
    10491049            free (var->value);
    1050           var->value_alloc_len = (len + 32) & ~31;
     1050          var->value_alloc_len = VAR_ALIGN_VALUE_ALLOC (len + 1);
    10511051          var->value = xmalloc (var->value_alloc_len);
    10521052        }
Note: See TracChangeset for help on using the changeset viewer.