logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: Mail::Box::Parser::C V 3.001: msg#00029

Subject: Re: Mail::Box::Parser::C V 3.001
* Tassilo von Parseval (tassilo.parseval@xxxxxxxxxxxxxxxxxxx) [030826 14:48]:
> On Tue, Aug 26, 2003 at 07:57:46PM +1000 Ron Savage wrote:
> > Output C.xs(145) : warning C4244: '=' : conversion from '__int64 ' to 'long 
> > ', possible loss of data
> > Output C.xs(172) : warning C4244: 'return' : conversion from '__int64 ' to 
> > 'long ', possible loss of data
> 
> Win's ftell() apparently returns a 64bit wide integer. Probably a
> typedef or a #define (that will use the appropriate type on Win will fix
> those warnings. For now (that is, as long as you don't use super-large
> mailboxes) this should not be a problem.

ftell() should return a long, so I have added a cast.

>     if(box==NULL) return XSRETURN_UNDEF;
> It should be either just
>     if(box==NULL) XSRETURN_UNDEF;

Yeh, and gcc is not complaining.  Happily someone is.

> > Output C.xs(986) : warning C4133: 'function' : incompatible types - from 
> > 'char *' to 'struct _iobuf *'
> > Output C.xs(986) : warning C4133: 'function' : incompatible types - from 
> > 'struct _iobuf *' to 'const char *'

Above is strange.  The prototype of fputs is
   (const char *, FILE *)
not the reverse.
-- 
               MarkOv

------------------------------------------------------------------------
drs Mark A.C.J. Overmeer                                MARKOV Solutions
       Mark@xxxxxxxxxxxx                          solutions@xxxxxxxxxxxx
http://Mark.Overmeer.net                   http://solutions.overmeer.net




<Prev in Thread] Current Thread [Next in Thread>