[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:salilgokhale@xxxxxxx.com]
> Sent: Friday, April 27, 2001 08:24
> To: bluetooth-dev@xxxxxxx.com
> Subject: [bluetooth-dev] bug in btmem.c?
> 
> Hi
> 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
> Salil
> 
> "I think therefore I am."
> Rene Des Cartes

//Peter
-
To unsubscribe from this list: send the line "unsubscribe bluetooth-dev" in
the body of a message to majordomo@xxxxxxx.com