Commit 92b95bf1 authored by Justin Wozniak's avatar Justin Wozniak

Update format specifiers

parent ead05ae4
#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
#include "codes/CodesIOKernelTypes.h"
......@@ -49,7 +50,7 @@ int64_t ex(
}
case PRINT:
{
printf("%ld\n", ex(p->opr.op[0]));
printf("%"PRId64"\n", ex(p->opr.op[0]));
fflush(stdout);
return 0;
}
......
......@@ -266,7 +266,7 @@ void yypstate_delete ();
/* Line 343 of yacc.c */
#line 58 "src/iokernellang/codesparser.y"
#include "CodesIOKernelContext.h"
#include "codes/CodesIOKernelContext.h"
int CodesIOKernel_lex(YYSTYPE * lvalp, YYLTYPE * llocp, void * scanner);
......
......@@ -190,7 +190,7 @@ BACKSLASH "\\"
{
char buf[512];
snprintf (buf, sizeof(buf), "ID too long: Maximum ID"
" length is %lu bytes!", sizeof(yylval->string_buf));
" length is %zu bytes!", sizeof(yylval->string_buf));
return cfgp_lex_error (yyextra,
yylloc->last_line, yylloc->last_column, buf);
}
......
......@@ -1063,7 +1063,7 @@ int interval_merge_tree_print(
/* print the node value */
fprintf(stderr,
"level=%i, node=internal, color=%c, dir=%c, key=%lu, size=%i, max=%i, start=%lu, end=%lu\n",
"level=%i, node=internal, color=%c, dir=%c, key=%zu, size=%i, max=%i, start=%zu, end=%zu\n",
level, node->color, dir, *(size_t *) node->key.key, node->size, node->max,
node->interval.start, node->interval.end);
......
......@@ -979,7 +979,7 @@ int red_black_tree_print(red_black_tree_node_t * node, int level, char dir)
}
/* print the node value */
fprintf(stderr, "level=%i, node=internal, color=%c, dir=%c, key=%lu, size=%i, max=%i, start=%lu, end=%lu\n",
fprintf(stderr, "level=%i, node=internal, color=%c, dir=%c, key=%zu, size=%i, max=%i, start=%zu, end=%zu\n",
level, node->color, dir, *(size_t *)node->key.key, node->size, node->max, node->interval.start, node->interval.end);
/* descend the right nodes */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment