Re: compat_ioctl cmd does not match even if it shows same value

Paul FLOYD <[email protected]>
Newsgroups gmane.comp.debugging.valgrind
Message-ID <1618816863.1501.1597654422934.JavaMail.www@wwinf1m22>
> This is incorrect for C99 and indeed any compiler that supports "long long". On such systems, the integer constant 3222829167
> has type "long long", and it is absolutely guaranteed to preserve that value when cast to unsigned. Assuming 32-bit int, of course.

It is also incorrect for C90. See here https://en.cppreference.com/w/c/language/integer_constant. For C90 an integer constant
without suffix can be int, long int or unsigned long int. In this case is it would be unsigned long int.

A+
Paul
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.