commit fba9fd10537da98c14e02adc04e31ceed43f972e
parent 33eab59c2388cdba1da11cf5bfe4d99171a9062d
Author: ByteProject <stefan.vogt@byteproject.net>
Date: Thu, 16 Feb 2012 00:13:26 +0100
refactored 64-bit integers to size_t and int32_t
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/ansilove/main.c b/ansilove/main.c
@@ -117,10 +117,10 @@ int main(int argc, char *argv[])
char *fext;
// find last position of char '.' so we can determine the file extension
- int64_t index = strrchr(input, '.') - input;
+ size_t index = strrchr(input, '.') - input;
// calculate size of the input string
- int64_t inpSize = strlen(input);
+ size_t inpSize = strlen(input);
// generate size_t result we can pass to our substr() implementation
size_t result = inpSize - index;
@@ -264,7 +264,7 @@ int main(int argc, char *argv[])
printf( "%s: %d\n", "Tinfo4", record->tinfo4);
}
if (record->comments > 0) {
- int64_t i;
+ int32_t i;
printf( "Comments: ");
for(i = 0; i < record->comments; i++) {
printf( "%s\n", record->comment_lines[i] );