# SolvedDumb visual studio warning...

#### xxxtarnatiiion

Full Member
Game Name
xxxtarnatiiion
Anticheat
N/A
N/A
How long you been coding/hacking?
na
Coding Language
c++ c#

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
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:
xxxtarnatiiion

#### xxxtarnatiiion

Full Member
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!

M47Z
Attention! Before you post:

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