static_cast in C?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-12-12 7:29 AM
freqError = static_cast<int32_t>(readRegister(REG_FREQ_ERROR_MSB) & B111);
C has no static_cast, so how can I convert the above code to C?
(It 's C++, from Arduino)
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-12-12 8:21 AM
freqError = (int32_t)(readRegister(REG_FREQ_ERROR_MSB) & B111);
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-12-12 9:12 AM
Thank you!
