SVNews r326652

NOTE: This service is experimental and subject to change! Use at your own risk!

2017-12-07 02:08:55 - r326652 by asomers (asomers)

Complete list of files affected by revision r326652:

(Note: At the moment, these links point to ViewVC on svn.freebsd.org. They are probably slow. Do not overuse.)

  History   Contents   Diff   MODIFY   /head/usr.bin/dc/bcode.c  
  History   Contents   Diff   MODIFY   /head/usr.bin/dc/dc.1  
  History   Contents   Diff   MODIFY   /head/usr.bin/dc/tests/Makefile  
  History   Contents     ADD   /head/usr.bin/dc/tests/bcode.sh  
  History   Contents   Diff   MODIFY   /head/usr.bin/dc/tests/inout.sh  

Commit message:

dc(1): fix modulo operations with fractional inputs

Our dc(1) has never correctly calculated remainders with fractional inputs.
Both bmod and bdivmod seem to have copy/pasted code from bdiv, which results
in the remainder having the wrong output scale.

PR: 162495
Reported by: anonymous
Reviewed by: pfg
Differential Revision: https://reviews.freebsd.org/D13390

 


Powered by Python FreeBSD support by secnetix GmbH & Co. KG

Page generated in 8 ms, 5 files printed. Current time is 2017-12-16 11:10:40. All times are in UTC/GMT.