[postgis-tickets] r15817 - increase expected max variable integer
nicklas.aven at jordogskog.no
nicklas.aven at jordogskog.no
Mon Sep 25 13:48:19 PDT 2017
Author: nicklas
Date: 2017-09-25 13:48:18 -0700 (Mon, 25 Sep 2017)
New Revision: 15817
Modified:
trunk/liblwgeom/bytebuffer.c
Log:
increase expected max variable integer
Modified: trunk/liblwgeom/bytebuffer.c
===================================================================
--- trunk/liblwgeom/bytebuffer.c 2017-09-25 17:00:36 UTC (rev 15816)
+++ trunk/liblwgeom/bytebuffer.c 2017-09-25 20:48:18 UTC (rev 15817)
@@ -239,7 +239,7 @@
bytebuffer_append_varint(bytebuffer_t *b, const int64_t val)
{
size_t size;
- bytebuffer_makeroom(b, 8);
+ bytebuffer_makeroom(b, 16);
size = varint_s64_encode_buf(val, b->writecursor);
b->writecursor += size;
return;
@@ -252,7 +252,7 @@
bytebuffer_append_uvarint(bytebuffer_t *b, const uint64_t val)
{
size_t size;
- bytebuffer_makeroom(b, 8);
+ bytebuffer_makeroom(b, 16);
size = varint_u64_encode_buf(val, b->writecursor);
b->writecursor += size;
return;
More information about the postgis-tickets
mailing list