shithub: riscv

Download patch

ref: f44cfeb7d7519a18140a043fbf2b5eed243153fc
parent: 19d6a98038953b27f539e1fd2187b7cfec9b108d
author: BurnZeZ <devnull@localhost>
date: Sun May 13 15:58:16 EDT 2018

audio/pcmconv: fix accidental cast to float instead of double

--- a/sys/src/cmd/audio/pcmconv/pcmconv.c
+++ b/sys/src/cmd/audio/pcmconv/pcmconv.c
@@ -355,7 +355,7 @@
 			else if(d < -1.0)
 				*dst++ = MININT;
 			else
-				*dst++ = d*((float)MAXINT);
+				*dst++ = d*((double)MAXINT);
 		}
 	}
 }