unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
blob 7b249645ad412eb74e45a393bed4e4cb5d451e89 515 bytes (raw)
name: patches/pulseaudio-fix-mult-test.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
 
Avoid signed overflow during mult-s16-test which intermittently
failed.

Patch by Mark H Weaver <mhw@netris.org>.

--- pulseaudio-5.0/src/tests/mult-s16-test.c.orig	2014-01-23 13:57:55.000000000 -0500
+++ pulseaudio-5.0/src/tests/mult-s16-test.c	2014-10-24 03:13:46.464661815 -0400
@@ -55,7 +55,7 @@
 START_TEST (mult_s16_test) {
     int16_t samples[SAMPLES];
     int32_t volumes[SAMPLES];
-    int32_t sum1 = 0, sum2 = 0;
+    uint32_t sum1 = 0, sum2 = 0;
     int i;
 
     pa_random(samples, sizeof(samples));

debug log:

solving 7b249645ad412eb74e45a393bed4e4cb5d451e89 ...
found 7b249645ad412eb74e45a393bed4e4cb5d451e89 in https://git.savannah.gnu.org/cgit/guix.git

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).