avoid declaration error on VC++

This commit is contained in:
h2so5
2013-11-06 11:25:33 +09:00
parent 38f4086a52
commit db14b8e7d4
+1 -1
View File
@@ -193,9 +193,9 @@ pack_double(mrb_state *mrb, mrb_value o, mrb_value str, mrb_int sidx, unsigned i
{
int i;
double d;
uint8_t *buffer = (uint8_t *)&d;
str = str_len_ensure(mrb, str, sidx + 8);
d = mrb_float(o);
uint8_t *buffer = (uint8_t *)&d;
#ifdef MRB_ENDIAN_BIG
#error unsupported