Forum Discussion
Altera_Forum
Honored Contributor
11 years agoalt_types.h printf warning
Hi, I am writing some C for a NIOS. I am using the data formats defined in alt_types.h, alt_u32 alt_u16 alt_u8. When I use printf with alt_u32 I am getting a warning: warning: ...
Altera_Forum
Honored Contributor
11 years agoHi, thanks for replying! wasnt sure if this post would get lost or not, didnt want to post such a specific question on the general one.
Casting using (unsigned int) worked! Although I had been ignoring the errors as the output was coming back as I expected I definately prefer fixing them wiht the cast compared to covering them up. James