Mailinglist Archive: opensuse-bugs (8045 mails)

< Previous Next >
[Bug 231194] New: gambas2-1.9.34-4: left shift count >= width of type
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Sun, 31 Dec 2006 06:29:14 -0700 (MST)
  • Message-id: <bug-231194-21960@xxxxxxxxxxxxxxxxxxxxxxxxx/>
https://bugzilla.novell.com/show_bug.cgi?id=231194

Summary: gambas2-1.9.34-4: left shift count >= width of type
Product: openSUSE 10.3
Version: unspecified
Platform: All
OS/Version: SuSE Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Basesystem
AssignedTo: bnc-team-screening@xxxxxxxxxxxxxxxxxxxxxx
ReportedBy: dcb314@xxxxxxxxxxx
QAContact: qa@xxxxxxx


I just tried to compile package gambas2-1.9.34-4

The compiler said

gpicture.cpp:654: warning: left shift count >= width of type

The source code is

gdk_pixbuf_fill(image,(guint32)col<<8 + 0xFF);

I agree with the compiler. The left shift is for about 263.

Suggest new code

gdk_pixbuf_fill(image,(guint32) (col << 8) + 0xFF);


--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

< Previous Next >
This Thread
  • No further messages