Quantcast
Viewing all articles
Browse latest Browse all 22090

c enum with 32 bit values

i need some unsigned 32bit enum values for my software, therefore i implemented this (simple) enum:

enum{   val1    = 0xFFFFFFFFu,   val2    = 0xFFFFFFFEu,   val3    = 0xFFFFFFF0};

The problem: Everytime i run the compiler, Eclipse aborts compiling and marks the enum with the following error:
Image may be NSFW.
Clik here to view.
enter image description here

In my oppinion, a 32 int value should not be a problem for enums, but obviously it seems to be.I would be grateful about some input :)

[Update 1:] I will try to find the problem in the compiler settings, i will keep you up to date


Viewing all articles
Browse latest Browse all 22090

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>