Be kind to yourself. Otherwise we are all doofus sometimes. More times than any of us would outrightedly admit to.
Be kind to yourself. Otherwise we are all doofus sometimes. More times than any of us would outrightedly admit to.
I agree with master - I had to have my colleague point out to me that "addressing the last byte in this memory is not number X but X-1" yesterday. I should know that!
And the reason it changed when you made it static instead of global is probably just the ordering of variables in the data segment. Previously, you'd overwrite something that didn't make it crash!
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.