Permalink
Browse files

* Some small fixes

  • Loading branch information...
1 parent 4409950 commit 15fd452424745337acb2d7caf4f9bc9f0793f3bd @asandroq committed May 13, 2010
Showing with 3 additions and 3 deletions.
  1. +1 −1 src/api.c
  2. +1 −1 src/gc.c
  3. +1 −1 src/io.c
View
@@ -587,7 +587,7 @@ void sly_number_to_string(sly_state_t* S, int idx)
assert(S->stack[idx].type == SLY_TYPE_FIXNUM);
#endif
- snprintf(tmp, 64, "%d", S->stack[idx].value.fixnum);
+ snprintf(tmp, 64, "%ld", S->stack[idx].value.fixnum);
len = strlen(tmp);
str = sly_create_string(S, NULL, len);
View
@@ -173,7 +173,7 @@ static void collect_garbage(sly_store_t* S)
sly_object_t *obj;
#ifdef SLY_DTRACE
- int old_size = S->size;
+ size_t old_size = S->size;
SLY_GC_START();
#endif
View
@@ -1126,7 +1126,7 @@ static void sly_io_write_i(sly_state_t *S, sly_object_t* obj, sly_object_t *port
break;
case SLY_TYPE_FIXNUM:
- snprintf(buf, 64, "%d", obj->value.fixnum);
+ snprintf(buf, 64, "%ld", obj->value.fixnum);
sly_io_write_c_string(S, buf, port);
break;

0 comments on commit 15fd452

Please sign in to comment.