Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Implicit type convertion
#2
[quote="fwamolina"]My question is why my code test program (lint) generate an error when read this line.

U16 u16value;
U8 u8value;

u16value = (U16) u8value / 10U;

I think that line is absolutly compliance with misrac.
[quote]

1 are you using MISRA C 1 or 2

2 What is the error lint gives?

3 what rule does it think is being broken
<t>This post is made in a personal capacity<br/>
Member of MISRA-C-WG since 2002</t>


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)