diff options
| author | h2so5 <[email protected]> | 2013-11-06 11:25:33 +0900 |
|---|---|---|
| committer | h2so5 <[email protected]> | 2013-11-06 11:25:33 +0900 |
| commit | db14b8e7d4a1c8a6a8bdbe7dad0850e0ee1bbc87 (patch) | |
| tree | a0984e01f801637b4c0e75d578ae17d6561eb132 /src | |
| parent | 38f4086a52bbdcf27018f000c36ab72bd5402a92 (diff) | |
| download | mruby-db14b8e7d4a1c8a6a8bdbe7dad0850e0ee1bbc87.tar.gz mruby-db14b8e7d4a1c8a6a8bdbe7dad0850e0ee1bbc87.zip | |
avoid declaration error on VC++
Diffstat (limited to 'src')
| -rw-r--r-- | src/pack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pack.c b/src/pack.c index e28c0ca73..7d68dd338 100644 --- a/src/pack.c +++ b/src/pack.c @@ -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 |
