avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-libc-dev] [bug #31613] In pgm_read_byte the address is a byte inste


From: Reinier van der Welle
Subject: [avr-libc-dev] [bug #31613] In pgm_read_byte the address is a byte instead of an int
Date: Wed, 10 Nov 2010 15:45:10 +0000
User-agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; AntivirXP08; GTB6.5; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; Creative AutoUpdate v1.40.01)

Follow-up Comment #2, bug #31613 (project avr-libc):

Thanks for your comment, but I cannot see an error in the attached example.
When the code is run and j is watched, it gets the values 10, 8, 6, 4 end so
on, instead of 10, 9, 8 ,7 ... See also the compiler warning "assignment from
incompatible pointer type". When the char pointer is used, all is OK (of
course). But the address of the table could be well beyond $FF (the maximum of
the char pointer).
Where do I miss the point?
Reinier

(file #21976)
    _______________________________________________________

Additional Item Attachment:

File name: readbyte.zip                   Size:7 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?31613>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]