8086-toolchain icon indicating copy to clipboard operation
8086-toolchain copied to clipboard

c86 pointer increments

Open mcrossen opened this issue 8 years ago • 0 comments

The following code causes the compiler to freeze: char* ptr = 0; ptr += 1; Interestingly, the compiler works when revising the code like so: char* ptr = 0; ptr = ptr + 1;

I was able to reproduce this bug on both the CAEDM computers and my personal laptop. int pointers seem to work fine; however, its just char pointers that break it.

I'm creating this issue for future reference in case another student stumbles across the same problem.

mcrossen avatar Oct 21 '17 12:10 mcrossen