mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #3 from h2so5/patch-1
avoid declaration error on VC++
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user