|
|
| version 1.95, 2024/09/21 23:51:04 | version 1.97, 2024/10/07 23:46:24 |
|---|---|
| Line 221 protected: | Line 221 protected: |
| } | } |
| inline void expand() { | 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){ | inline void fit(size_t index){ |
| Line 259 template<typename T> char* pa_itoa(T n, | Line 259 template<typename T> char* pa_itoa(T n, |
| } | } |
| do { | do { |
| *(--pos)=(n % base) + '0'; | *(--pos)=(char)(n % base) + '0'; |
| n/=base; | n/=base; |
| } while (n > 0); | } while (n > 0); |
| Line 275 template<typename T> char* pa_uitoa(T n, | Line 275 template<typename T> char* pa_uitoa(T n, |
| *pos='\0'; | *pos='\0'; |
| do { | do { |
| *(--pos)=(n % base) + '0'; | *(--pos)=(char)(n % base) + '0'; |
| n/=base; | n/=base; |
| } while (n > 0); | } while (n > 0); |