1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00

Cast indentation counter to int to fix compilation on Mac OS X

The error was:

sgml-parser.c: In function 'print_indent':
sgml-parser.c:99: warning: field precision should have type 'int', but argument 2 has type 'long unsigned int'
This commit is contained in:
Jonas Fonseca 2006-12-03 20:45:01 +01:00
parent 7894e30ace
commit 640d73b7db

View File

@ -96,7 +96,7 @@ static unsigned char indent_string[] =
static void
print_indent(struct dom_stack *stack)
{
printf("%.*s", get_indent_offset(stack), indent_string);
printf("%.*s", (int) get_indent_offset(stack), indent_string);
}
static enum dom_code