[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [bluetooth-dev] bug in btmem.c?
> -----Original Message-----
> From: salil gokhale [mailto:firstname.lastname@example.org]
> Sent: Friday, April 27, 2001 08:24
> To: email@example.com
> Subject: [bluetooth-dev] bug in btmem.c?
> I am using the latest sources (2001/03/29)
> I think there is a bug in btmem.c.
> O line 241 in subscribe_bt_buf(),
> tail_free = (bt_buf.tail - bt_buf.free);
> tail_free is a u32 variable, while bt_buf.tail and bt_buf.free
> are u8* pointers.
> Is this a bug?
It is called pointer arithmetics, and is perfectly legal in C.
> Thanks and best regards
> "I think therefore I am."
> Rene Des Cartes
To unsubscribe from this list: send the line "unsubscribe bluetooth-dev" in
the body of a message to firstname.lastname@example.org