summaryrefslogtreecommitdiffstatshomepage
path: root/py/vstr.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/vstr.c')
-rw-r--r--py/vstr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/py/vstr.c b/py/vstr.c
index 4d10dfba82..6630ac40a7 100644
--- a/py/vstr.c
+++ b/py/vstr.c
@@ -3,6 +3,7 @@
#include <string.h>
#include <assert.h>
#include "misc.h"
+#include "mpconfig.h"
// returned value is always at least 1 greater than argument
#define ROUND_ALLOC(a) (((a) & ((~0) - 7)) + 8)
@@ -124,7 +125,7 @@ bool vstr_shrink(vstr_t *vstr) {
return vstr_set_size(vstr, vstr->len);
}
-static bool vstr_ensure_extra(vstr_t *vstr, int size) {
+STATIC bool vstr_ensure_extra(vstr_t *vstr, int size) {
if (vstr->len + size + 1 > vstr->alloc) {
if (vstr->fixed_buf) {
return false;