[Bug 760769] New: tests:audioconvert: Build error when running make check

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Sun Jan 17 18:40:46 PST 2016


https://bugzilla.gnome.org/show_bug.cgi?id=760769

            Bug ID: 760769
           Summary: tests:audioconvert: Build error when running make
                    check
    Classification: Platform
           Product: GStreamer
           Version: git master
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gst-plugins-base
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: vineeth.tm at samsung.com
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

Due to changes made in 
https://bugzilla.gnome.org/show_bug.cgi?id=760134

getting the below errors while running make check.

elements/audioconvert.c:815:18: error: integer overflow in expression
[-Werror=overflow]
       (gdouble) (-(32768L << 16)) / 2147483648.0,       /* ~ -1.0 */
                  ^
elements/audioconvert.c:825:25: error: integer overflow in expression
[-Werror=overflow]
     gint32 in[] = { 0, (-(1L << 31)), (1L << 30), (-(1L << 30)) };
                         ^
elements/audioconvert.c:827:18: error: integer overflow in expression
[-Werror=overflow]
       (gdouble) (-(1L << 31)) / 2147483648.0,   /* ~ -1.0 */



This happens because 
32768L << 16 and 1L << 31 is 2147483648
but it exceeds the positive range of int which is 2147483647.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list