Alexander Leidinger wrote:
> Ti Kan wrote:
> > cc: Warning: brhist.c, line 168: In this statement, "tgetstr(...)" of
> > type "int", is being converted to "pointer to char". (cvtdiftypes)
> >     tp = tgetstr ("up", &tp);
> > ----^
> > ...
>
> This could be a problem on 64bit platforms (sizeof(char*) !=
> sizeof(int)). If someone who cares and has enough time could investigate
> this, we would be happy.

Yes, sizeof(char *) == 8 and sizeof(int) == 4 on Tru64 UNIX.

Takehiro Tominaga wrote:
>    Ti Kan wrote:
>    > cc: Warning: lame.c, line 1727: In this statement,
>    > the shift count "48" is negative or is greater than
>    > or equal to the promoted size of the operand "1". (shiftcount)
>    > in_buffer[0][i] = buffer_l[i] * (1.0 / ( 1 << (8 * sizeof(long) - 16)));
>
> Can this quick change fix ? pls test and tell me result.
>
> in_buffer[0][i] = buffer_l[i] * (1.0 / ( 1L << (8 * sizeof(long) - 16)));
> in_buffer[1][i] = buffer_r[i] * (1.0 / ( 1L << (8 * sizeof(long) - 16)));
>
> Yes, one character patches. change two "1" into "1L".

Yes, that fixed these warnings.

-Ti
-- 
    ///  Ti Kan                Vorsprung durch Technik
   ///   AMB Laboratories, Sunnyvale, CA. USA
  ///    [EMAIL PROTECTED]
 //////  http://www.amb.org/ti/
///

_______________________________________________
mp3encoder mailing list
[EMAIL PROTECTED]
http://minnie.tuhs.org/mailman/listinfo/mp3encoder

Reply via email to