Commit 13cfd2cf authored by Masahiko Sakai's avatar Masahiko Sakai

modified %ld to %lld for long long

parent 6e059c3b
......@@ -248,7 +248,7 @@ void print_T(long long t) {
for (i=0;i<20;i++) {
//if (i==5) printf(" ");
printf("%lu", (t/k)%3);
printf("%llu", (t/k)%3);
//t /= 3;
k /= 3;
if(i==9){
......
......@@ -67,7 +67,7 @@ long long dm_move(long long pos) {
long long jpos=-1;
if (dm_mov_search(D, pos, &jpos) == -1) {
fprintf(stderr, "Error! unable to move (%lu to %lu)[%lu]\n", D, pos, C);
fprintf(stderr, "Error! unable to move (%llu to %llu)[%llu]\n", D, pos, C);
exit(1);
}
......@@ -644,7 +644,7 @@ long long op_decode(Op_List &op_list, long long dest_pos, long long d_ptr) {
dmod_ptr = d_ptr;
if (dest_pos != -1 && dest_pos < 100) {
fprintf(stderr, "Error! dest_pos (%lu)\n", dest_pos);
fprintf(stderr, "Error! dest_pos (%llu)\n", dest_pos);
exit(1);
}
......
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