i think the attackGetter functions are returning "unsigned __int64".adamh wrote:I suggest you rewrite all your attack functions to return unsigned __int64, because they do not despite what you originally wrote. In fact why not use unsigned __int64 everywhere?
i think too, everyone knows what ui64_t is, especially because of my
introducing post.
i have to dissapoint you, because HGMs suggestion also does not work.adamh wrote: I think that would solve the problem, and my belief is reinforced by the fact the it seemed to work after HGMs suggestion with temp variables of that built-in type.
i only stated that using the temp again in the mentioned codeblock
seems to work, at least i did not get any exception.
Further there is another workaround with explicit casting, but
here it is not the only thing to get it to work, but to understand
why such a behaviour can occur, although the input for the expression
is verified as ok.
What you bet for, i hope foradamh wrote:
I would be tempted to make a huge bet that this is not a compiler bug. A more probable explanation would be in the definition of the ui64_t type, It would be interesting if you want to provide that.

i think meanwhile you know what ui64_t is. But you can
ask Gerd what U64 type is, which he used in his code
(dont take me too serious now

sorry i cannot follow here.adamh wrote:
(Funny stuff could possibly occur in the possible argument promotion - and matching - in the call to the binary "&" operator)
regards