After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 434507 - Implicit integer conversion in relational operations
Implicit integer conversion in relational operations
Status: RESOLVED FIXED
Product: vala
Classification: Core
Component: Semantic Analyzer
0.0.x
Other All
: Normal normal
: ---
Assigned To: Jürg Billeter
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2007-04-30 07:03 UTC by Jürg Billeter
Modified: 2008-10-18 14:38 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jürg Billeter 2007-04-30 07:03:47 UTC
> For example:
> 
> foo(uchar b) {
>   if (b > 0) {
>   }
> }
> 
> Currently gives an error for the comparison of 'b' and '0' unless I
> cast 0 to uchar.

That should certainly be fixed, we'll have to check how to handle such
conversions in general.
Comment 1 Jürg Billeter 2007-04-30 07:57:54 UTC
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.
Comment 2 Marc-Andre Lureau 2008-10-18 14:38:41 UTC
test case added in vala-tests