Ticket #1720: intfdiv.patch

File intfdiv.patch, 468 bytes (added by tcurtis, 4 years ago)

An as-yet-untested patch that SHOULD fix the problem.

  • src/ops/math.ops

     
    299299        goto ADDRESS(handler); 
    300300    } 
    301301 
    302     f  = floor($1 / den); 
     302    f  = floor((FLOATVAL)$1 / den); 
    303303    $1 = (INTVAL)f; 
    304304} 
    305305 
     
    337337        goto ADDRESS(handler); 
    338338    } 
    339339 
    340     f  = floor($2 / den); 
     340    f  = floor((FLOATVAL)$2 / den); 
    341341    $1 = (INTVAL)f; 
    342342} 
    343343