This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Warning: use of old-style cast

I'm trying to convert my C code to C++, but i get this warning for the following expressions:

What is the new-style cast for these lines of code?

Parents
  • Yes, i'm using the latest version of the Keil software. 

    And this line in Misc controls erased the warnings. Thanks a lot.

    As for option 2, i read it, and i'm new to this type-casting. As i understood type-casting converts one data type into another. But does this only happen inside the scope of one programming language or one language to another (C-style data type to C++-style data type)?

    BR, Alden 

Reply
  • Yes, i'm using the latest version of the Keil software. 

    And this line in Misc controls erased the warnings. Thanks a lot.

    As for option 2, i read it, and i'm new to this type-casting. As i understood type-casting converts one data type into another. But does this only happen inside the scope of one programming language or one language to another (C-style data type to C++-style data type)?

    BR, Alden 

Children
No data