Solved Dumb visual studio warning...

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

xxxtarnatiiion

Full Member
Dec 6, 2019
47
573
1
Game Name
xxxtarnatiiion
Anticheat
N/A
Tutorial Link
N/A
How long you been coding/hacking?
na
Coding Language
c++ c#
unknown.jpg

False warning: C26451 Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value.
(highlighted the warning in purple)

I've been looking for solutions, but there's nothing I can do about it...
I'm working on cod infinite warfare (64bits)

btw:
DW_SPACE = 0x3F8
base = GetModuleHandle("iw7_ship.exe") + 0x003D22780
 

M47Z

Full Member
Aug 26, 2019
43
2,178
4
View attachment 8225
False warning: C26451 Arithmetic overflow: Using operator '+' on a 4 byte value and then casting the result to a 8 byte value.
(highlighted the warning in purple)

I've been looking for solutions, but there's nothing I can do about it...
I'm working on cod infinite warfare (64bits)

btw:
DW_SPACE = 0x3F8
base = GetModuleHandle("iw7_ship.exe") + 0x003D22780
what about cast (i * DW_SPACE) to a 8 byte value?
because you are probably coding a dll in 64 bits and uintptr_t will be a 8 byte value and (i * DW_SPACE) is an integer aka 4 byte value
 
Last edited:
  • Like
Reactions: xxxtarnatiiion

xxxtarnatiiion

Full Member
Dec 6, 2019
47
573
1
what about cast (i * DW_SPACE) to a 8 byte value?
because you are probably coding a dll in 64 bits and uintptr_t will be a 8 byte value and (i * DW_SPACE) is an integer aka 4 byte value
i cast it to uintptr_t and it works just like you said, thx!
 
  • Like
Reactions: M47Z
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods