Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about pc-lint

Read more about pc-lint

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - pc-lint

cannot cast 'float64' to different essential type 'unsigned16' [MISRA 2012 Rule 10.8, required]

cannot cast 'float64' to different essential type 'unsigned16' [MISRA 2012 Rule 10.8, required] double x, y; #define MIN 2.0 uint16_t z = (uint16_t) ((x * MIN) + y); How can I resolve this line throw...
test-img

user8454941

c

casting

misra

pc-lint

Votes: 0

Answers: 2

Latest Answer

Rule 10.8 states The value of a composite expression shall not be cast to a different essential type category or a wider essential type. The Rationale provided explains why. To resolve the violation...
test-img

Andrew

Pc lint "-egrep" option

I'm trying to clean up my code from misra violations using Pc-lint. One of them is the violation to rule 11.4 in this code. GPIO_PinState level = HAL_GPIO_ReadPin(GPIOB, GPIO_PIN_6); the definition o...
test-img

buch

c

stm32

misra

pc-lint

Votes: 0

Answers: 1

Latest Answer

HAL drivers released by STMicroelectronics contain hundreds of blocked lines of code; there is no rule that HAL drivers will not be interfered with; I have witnessed many times in the industry that HA...
test-img

Sercan Sebetçi

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved