Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Jul 2012 03:49:47 GMT
From:      RyoTa SimaMoto <liangtai.s4@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/170079: audio/wildmidi: typo fix
Message-ID:  <201207230349.q6N3nlk3009311@red.freebsd.org>
Resent-Message-ID: <201207230350.q6N3oAsR018859@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         170079
>Category:       ports
>Synopsis:       audio/wildmidi: typo fix
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 23 03:50:10 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     RyoTa SimaMoto
>Release:        9.0-STABLE
>Organization:
>Environment:
FreeBSD takiba.fakenet 9.0-STABLE FreeBSD 9.0-STABLE #11 r235800: Fri May 25 02:09:21 JST 2012     liangtai@takiba.fakenet:/usr/obj/usr/src/sys/VAIO  i386
>Description:
Correct wrong use of '&&' instead of '&' for logical "bit and"
in src/wildmidi_lib.c by this patch.  These typographical
errors cause failure on clang build.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	wildmidi/files/patch-wildmidi_lib.c--BIT_AND
#
echo x - wildmidi/files/patch-wildmidi_lib.c--BIT_AND
sed 's/^X//' >wildmidi/files/patch-wildmidi_lib.c--BIT_AND << 'a737f7741eb44abc4f68944228e027a4'
X--- src/wildmidi_lib.c.orig	2011-12-01 05:04:29.000000000 +0900
X+++ src/wildmidi_lib.c	2012-03-02 07:44:34.000000000 +0900
X@@ -2182,11 +2182,11 @@
X         return NULL;
X     }
X 
X-    if (WM_MixerOptions && WM_MO_WHOLETEMPO)
X+    if (WM_MixerOptions & WM_MO_WHOLETEMPO)
X     {
X         float bpm_f = 60000000.0 / (float)tempo;
X         tempo = 60000000 / (unsigned long int)bpm_f;
X-    } else if (WM_MixerOptions && WM_MO_ROUNDTEMPO)
X+    } else if (WM_MixerOptions & WM_MO_ROUNDTEMPO)
X     {
X         float bpm_fr = 60000000.0 / (float)tempo + 0.5;
X         tempo = 60000000 / (unsigned long int)bpm_fr;
X@@ -2420,11 +2420,11 @@
X                                     tempo = 500000;
X 
X                                 {
X-                                    if (WM_MixerOptions && WM_MO_WHOLETEMPO)
X+                                    if (WM_MixerOptions & WM_MO_WHOLETEMPO)
X                                     {
X                                         float bpm_f = 60000000.0 / (float)tempo;
X                                         tempo = 60000000 / (unsigned long int)bpm_f;
X-                                    } else if (WM_MixerOptions && WM_MO_ROUNDTEMPO)
X+                                    } else if (WM_MixerOptions & WM_MO_ROUNDTEMPO)
X                                     {
X                                         float bpm_fr = 60000000.0 / (float)tempo + 0.5;
X                                         tempo = 60000000 / (unsigned long int)bpm_fr;
a737f7741eb44abc4f68944228e027a4
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201207230349.q6N3nlk3009311>