Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6664329
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:35:54+00:00 2026-05-26T02:35:54+00:00

I am doing static code analysis (Using Gimpel PC- Lint) of my source code.

  • 0

I am doing static code analysis (Using Gimpel PC- Lint) of my source code. In code analysis, i am getting a warning ‘Suspicious Truncation in arithmetic expression combining with pointer’.

Here is the what analysis report says::

source\interp.cpp(142): error 679: (Warning — Suspicious Truncation in arithmetic expression combining with pointer)

    py[ulIndex] = y[ulIndex+1] - y[ulIndex];

Here py, y are dynamic array of data type double with same size but still the warning is coming up in code analysis for the above line.

Can anyone help me to figure out this?

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T02:35:55+00:00Added an answer on May 26, 2026 at 2:35 am

    It may be because your adding an int to an unsigned long with ulIndex+1
    Try

    py[ulIndex] = y[ulIndex+UL1]-y[ulIndex];
    

    Or it could depend on how you’ve defined py and y arrays.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What are the benefits of doing static code analysis on your source code? I
while doing some static code analysis I've found a weird one. On a call
I am looking at doing some static code analysis of an exisiting PHP project,
I'm doing code review and came across a class that uses all static methods.
Doing an ajax get request works as expected using the following code: $.ajax({ type:
Premise When using code analysis (or fxCop) with C# optional parameters you can get
this code doesn't compile. I'm wondering what I am doing wrong: private static Importable
I'm working on some custom C++ static code analysis for my PHD thesis. As
Im doing research on the capabilities of static analysis and at the moment I'm
I'm doing the following: static GLfloat vertices[3][3] = { {0.0, 1.0, 0.0}, {1.0, 0.0,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.