Skip to content

Commit 7f425a2

Browse files
author
Vladyslav Yarema
committed
Fix var name
1 parent 7331f7f commit 7f425a2

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

goquant.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ import (
1212
)
1313

1414
func Quantize(img_buff *[]byte) {
15-
log.Println("Come into quantize")
1615
in_image_size := len(*img_buff)
1716
out_image_size := C.size_t(0)
17+
1818
log.Println("IN Image size: ", in_image_size)
1919
b := *img_buff
2020

goquant.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ static pngquant_error prepare_output_image(liq_result *result, liq_image *input_
4646
char *custom_create(void *file_cont, int sz, size_t *out_length) {
4747
liq_image *input_image = NULL;
4848
liq_result *res = NULL;
49-
int rezult;
49+
int result;
5050

5151
png24_image input_image_rw = {};
5252
png24_image *input_image_rwpng = &input_image_rw;
@@ -74,15 +74,15 @@ char *custom_create(void *file_cont, int sz, size_t *out_length) {
7474

7575
dynamic_buf* out_image_buf = create_image_buf_len(sz);
7676

77-
rezult = rwpng_write_image8_to_buf(out_image_buf, &output_image);
77+
result = rwpng_write_image8_to_buf(out_image_buf, &output_image);
7878

79-
if (rezult != SUCCESS)
79+
if (result != SUCCESS)
8080
{
81-
fprintf(stderr, "Error occured while writing to file : %d", rezult);
81+
fprintf(stderr, "Error occured while writing to file : %d", result);
8282
exit(EXIT_FAILURE);
8383
}
8484

8585
*out_length = out_image_buf->length;
86+
8687
return out_image_buf->buffer;
8788
}
88-

0 commit comments

Comments
 (0)