--- parser3/src/include/pa_array.h 2024/09/21 23:51:04 1.95 +++ parser3/src/include/pa_array.h 2024/10/07 23:46:24 1.97 @@ -8,7 +8,7 @@ #ifndef PA_ARRAY_H #define PA_ARRAY_H -#define IDENT_PA_ARRAY_H "$Id: pa_array.h,v 1.95 2024/09/21 23:51:04 moko Exp $" +#define IDENT_PA_ARRAY_H "$Id: pa_array.h,v 1.97 2024/10/07 23:46:24 moko Exp $" // includes @@ -221,7 +221,7 @@ protected: } inline void expand() { - resize(fallocated>0 ? fallocated+fallocated/4+2 : 3); // 3 is PAF default, confirmed by tests + resize(fallocated>0 ? fallocated+fallocated/2+2 : 3); // 3 is PAF default, confirmed by tests } inline void fit(size_t index){ @@ -259,7 +259,7 @@ template char* pa_itoa(T n, } do { - *(--pos)=(n % base) + '0'; + *(--pos)=(char)(n % base) + '0'; n/=base; } while (n > 0); @@ -275,7 +275,7 @@ template char* pa_uitoa(T n, *pos='\0'; do { - *(--pos)=(n % base) + '0'; + *(--pos)=(char)(n % base) + '0'; n/=base; } while (n > 0);