diff options
author | Daniel Friesel <derf@finalrewind.org> | 2018-12-13 11:14:30 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2018-12-13 11:14:30 +0100 |
commit | 6d8a58ae50c46531512ac6930d95f7ec2d6679c3 (patch) | |
tree | 3f4f480c7ed765b7db4cf48800ba25fc4abb6710 /src/lib | |
parent | 3afc4faf97e35849071ca9762e121a90323c6441 (diff) |
ubjw: Decrease CONTAINER_STACK_MAX
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/ubjson/ubjw.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/ubjson/ubjw.c b/src/lib/ubjson/ubjw.c index 2ee78f7..9fce397 100644 --- a/src/lib/ubjson/ubjw.c +++ b/src/lib/ubjson/ubjw.c @@ -15,7 +15,7 @@ #define CONTAINER_EXPECTS_KEY 0x10
-#define CONTAINER_STACK_MAX 64
+#define CONTAINER_STACK_MAX 16
#define BUFFER_OUT_SIZE 1024
#define MAX_DIMS 8
@@ -569,6 +569,7 @@ void ubjw_end(ubjw_context_t* ctx) }
+// Not used by benchmark.py -> high BUFFER_OUT_SIZE does not matter
static inline void priv_ubjw_write_byteswap(ubjw_context_t* ctx, const uint8_t* data, int sz, size_t count)
{
uint8_t buf[BUFFER_OUT_SIZE];
|