ansilove

ANSI and ASCII art to PNG converter in C
Log | Files | Refs | README | LICENSE

commit 1a49278caf21d9f145c6467e7c3b133de18d48d9
parent dc858f23a0f749b94bc0bd23ca592bd99997e3b1
Author: Frederic Cambus <fcambus@users.sourceforge.net>
Date:   Sun, 26 Jul 2015 22:47:14 +0200

Changing result variable type to uint32_t to avoid doing comparison of integers of different signs

Diffstat:
Msrc/ansilove.c | 14+++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/ansilove.c b/src/ansilove.c @@ -222,7 +222,7 @@ void alAnsiLoader(char *input, char *output, char *retinaout, char *font, int32_ // next up is loading our file into a dynamically allocated memory buffer unsigned char *input_file_buffer; - size_t result; + int32_t result; // allocate memory to contain the whole file input_file_buffer = (unsigned char *) malloc(sizeof(unsigned char)*input_file_size); @@ -1165,7 +1165,7 @@ void alPcBoardLoader(char *input, char *output, char *retinaout, char *font, int // next up is loading our file into a dynamically allocated memory buffer unsigned char *input_file_buffer; - size_t result; + int32_t result; // allocate memory to contain the whole file input_file_buffer = (unsigned char *) malloc(sizeof(unsigned char)*input_file_size); @@ -1550,7 +1550,7 @@ void alBinaryLoader(char *input, char *output, char *retinaout, char *columns, c // next up is loading our file into a dynamically allocated memory buffer unsigned char *input_file_buffer; - size_t result; + int32_t result; // allocate memory to contain the whole file input_file_buffer = (unsigned char *) malloc(sizeof(unsigned char)*input_file_size); @@ -1684,7 +1684,7 @@ void alArtworxLoader(char *input, char *output, char *retinaout, bool createReti // next up is loading our file into a dynamically allocated memory buffer unsigned char *input_file_buffer; - size_t result; + int32_t result; // allocate memory to contain the whole file input_file_buffer = (unsigned char *) malloc(sizeof(unsigned char)*input_file_size); @@ -1812,7 +1812,7 @@ void alIcedrawLoader(char *input, char *output, char *retinaout, bool fileHasSAU // next up is loading our file into a dynamically allocated memory buffer unsigned char *input_file_buffer; - size_t result; + int32_t result; // allocate memory to contain the whole file input_file_buffer = (unsigned char *) malloc(sizeof(unsigned char)*input_file_size); @@ -2142,7 +2142,7 @@ void alTundraLoader(char *input, char *output, char *retinaout, char *font, int3 // next up is loading our file into a dynamically allocated memory buffer unsigned char *input_file_buffer; - size_t result; + int32_t result; // allocate memory to contain the whole file input_file_buffer = (unsigned char *) malloc(sizeof(unsigned char)*input_file_size); @@ -2370,7 +2370,7 @@ void alXbinLoader(char *input, char *output, char *retinaout, bool createRetinaR // next up is loading our file into a dynamically allocated memory buffer unsigned char *input_file_buffer; - size_t result; + int32_t result; // allocate memory to contain the whole file input_file_buffer = (unsigned char *) malloc(sizeof(unsigned char)*input_file_size);