]> granicus.if.org Git - php/commitdiff
let inf be generated by INF constant (thanks to Wez)
authorMarcus Boerger <helly@php.net>
Fri, 26 Mar 2004 19:45:09 +0000 (19:45 +0000)
committerMarcus Boerger <helly@php.net>
Fri, 26 Mar 2004 19:45:09 +0000 (19:45 +0000)
ext/standard/basic_functions.c

index 056cd0ab50245899fb122a2840cb3af205591fb2..90b4d5877623ff1dcfbae6525174f835dfeb8bf9 100644 (file)
@@ -967,7 +967,7 @@ static double php_get_inf()
 {
 #if defined(__i386__) || defined(_X86_) || defined(ALPHA) || defined(_ALPHA) || defined(__alpha)
        double val;
-       ((php_uint32*)&val)[1] = PHP_DOUBLE_QUIET_NAN_HIGH;
+       ((php_uint32*)&val)[1] = PHP_DOUBLE_QUIET_INF_HIGH;
        ((php_uint32*)&val)[0] = 0;
        return val;
 #else