avr-gcc-list
[Top][All Lists]
Advanced

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

Re: [avr-gcc-list] eeprom.h error: cast from 'const uint8_t*' to 'uint8_


From: Bob Paddock
Subject: Re: [avr-gcc-list] eeprom.h error: cast from 'const uint8_t*' to 'uint8_t' loses precision in c++
Date: Mon, 8 Dec 2008 14:48:12 -0500

> Curious, if you replace that by a cast to uint16_t (which then gets
> assigned to a uint8_t register), will it still complain?

     EEARL =  (uint16_t)__p;
and
    EEARL = (uint8_t) (uint16_t)__p;

both work without error.




reply via email to

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