Minor bug in src/basesuif/s2c/util.cc ?

Marc Gonzalez-Sigler <[email protected]> Tue, 21 Sep 2004 17:10:32 +0200
Newsgroups gmane.comp.compilers.suif.bugs
Message-ID <[email protected]>
Hello,

I downloaded http://suif.stanford.edu/pub/suif/basesuif-1.3.0.5.tgz

My compiler is gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)

I noticed the following warning:
util.cc: In function `type_node* composite(type_node*, type_node*)':
util.cc:1129: warning: invalid conversion from `int' to `type_node*'

(util.cc is located in src/basesuif/s2c)

The reason the warning stood out is because it became an error when
I removed -pedantic from Makefile.deps (I have no idea why).

The relevant lines:
extern type_node *composite(type_node *type_1, type_node *type_2)
   {
      ...
                     if (array_2->size() != 0)
                         return FALSE;

I imagine a trivial fix would be to change FALSE to NULL?

-- 
Regards, Marc
_______________________________________________
To unsubscribe, send mail to [email protected]
or visit http://suif.stanford.edu/mailman/listinfo/suif-bugs