Skip to content

Commit 00ff4b7

Browse files
authored
Merge pull request #575 from jankratochvil/oldmsvc
Fix compilation on old MSVC. Looks great, thank you!
2 parents 19e786a + 7b7f294 commit 00ff4b7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/cmscgats.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3192,6 +3192,7 @@ cmsBool ParseCube(cmsIT8* cube, cmsStage** Shaper, cmsStage** CLUT, char title[]
31923192
if (lut_size > 0) {
31933193

31943194
int nodes;
3195+
cmsFloat32Number* lut_table;
31953196

31963197
/**
31973198
* Professional LUT generation tools (e.g., Nobe LutBake) list 65×65×65 as their highest supported size.
@@ -3202,7 +3203,7 @@ cmsBool ParseCube(cmsIT8* cube, cmsStage** Shaper, cmsStage** CLUT, char title[]
32023203
nodes = lut_size * lut_size * lut_size;
32033204

32043205

3205-
cmsFloat32Number* lut_table = (cmsFloat32Number*) _cmsMalloc(cube->ContextID, nodes * 3 * sizeof(cmsFloat32Number));
3206+
lut_table = (cmsFloat32Number*) _cmsMalloc(cube->ContextID, nodes * 3 * sizeof(cmsFloat32Number));
32063207
if (lut_table == NULL) return FALSE;
32073208

32083209
for (i = 0; i < nodes; i++) {

0 commit comments

Comments
 (0)