diff options
Diffstat (limited to 'ext/standard/pack.c')
-rw-r--r-- | ext/standard/pack.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/ext/standard/pack.c b/ext/standard/pack.c index 93de49d3a1..f71ef64181 100644 --- a/ext/standard/pack.c +++ b/ext/standard/pack.c @@ -606,7 +606,7 @@ PHP_FUNCTION(pack) } break; } - + case 'g': { /* pack little endian float */ while (arg-- > 0) { @@ -614,7 +614,7 @@ PHP_FUNCTION(pack) php_pack_copy_float(1, &ZSTR_VAL(output)[outputpos], v); outputpos += sizeof(v); } - + break; } case 'G': { @@ -635,7 +635,7 @@ PHP_FUNCTION(pack) } break; } - + case 'e': { /* pack little endian double */ while (arg-- > 0) { @@ -645,7 +645,7 @@ PHP_FUNCTION(pack) } break; } - + case 'E': { /* pack big endian double */ while (arg-- > 0) { @@ -1124,7 +1124,7 @@ PHP_FUNCTION(unpack) } #endif - case 'f': /* float */ + case 'f': /* float */ case 'g': /* little endian float*/ case 'G': /* big endian float*/ { @@ -1137,15 +1137,15 @@ PHP_FUNCTION(unpack) } else { memcpy(&v, &input[inputpos], sizeof(float)); } - + add_assoc_double(return_value, n, (double)v); break; } - + case 'd': /* double */ case 'e': /* little endian float */ - case 'E': /* big endian float */ + case 'E': /* big endian float */ { double v; if (type == 'e') { |