Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preprocessor does not support uint64 #224

Closed
guwirth opened this issue Jun 2, 2014 · 1 comment
Closed

Preprocessor does not support uint64 #224

guwirth opened this issue Jun 2, 2014 · 1 comment
Assignees
Labels
Milestone

Comments

@guwirth
Copy link
Collaborator

guwirth commented Jun 2, 2014

C++ community plugin 0.9.1

Current implementation of preprocessing is limited to Java long data type (C++ signed long long).

Example: #define UINT64_MAX 0xffffffffffffffffu

Error message:

17:26:23.661 WARN  - Cannot decode the number '0xffffffffffffffffu' falling back to max long (9223372036854775807) instead

sonar-cxx / cxx-squid / src / main / java / org / sonar / cxx / preprocessor / ExpressionEvaluator.java
evalNumber, line 153, using long => overflow

  • unsigned long is only in Java 8 supported?
  • use BigInteger instead?

Bigger change in preprocessor?

@wenns
Copy link
Contributor

wenns commented Nov 13, 2014

Fixed with 81e3188

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants