Skip to content

Commit

Permalink
updated zlib 1.2.12.1 dev and fixed bug with first value in CUBE file
Browse files Browse the repository at this point in the history
  • Loading branch information
michelerenzullo committed Jun 18, 2022
1 parent 2d83c10 commit b9ca7c9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion XMPConverter/XMPconverter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ void encode(string path, string& outFileName) {
for (const char* s = text.c_str(); *s;) if (*s++ == '\n' && *s <= '9' && *s >= '0') { points = points_address = _strdup(s); break; }
if (points) {
double* samples_1 = new double[(size_t)input_size * input_size * input_size * 3];
for (int32 idx = 0; idx < input_size * input_size * input_size * 3;) if (points++) samples_1[idx++] = strtod(points, &points);
for (int32 idx = 0; idx < input_size * input_size * input_size * 3;) samples_1[idx++] = strtod(points++, &points);
free(points_address);

uint32 size = (input_size > options.size) ? options.size : input_size;
Expand Down
8 changes: 4 additions & 4 deletions XMPConverter/zlib.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* zlib.h -- interface of the 'zlib' general purpose compression library
version 1.2.12, March 11th, 2022
version 1.2.12.1, March xxth, 2022
Copyright (C) 1995-2022 Jean-loup Gailly and Mark Adler
Expand Down Expand Up @@ -37,12 +37,12 @@
extern "C" {
#endif

#define ZLIB_VERSION "1.2.12"
#define ZLIB_VERNUM 0x12c0
#define ZLIB_VERSION "1.2.12.1-motley"
#define ZLIB_VERNUM 0x12c1
#define ZLIB_VER_MAJOR 1
#define ZLIB_VER_MINOR 2
#define ZLIB_VER_REVISION 12
#define ZLIB_VER_SUBREVISION 0
#define ZLIB_VER_SUBREVISION 1

/*
The 'zlib' compression library provides in-memory compression and
Expand Down
Binary file modified XMPConverter/zlibstatic.lib
Binary file not shown.

0 comments on commit b9ca7c9

Please sign in to comment.