我注意到这段代码:
if ((context->count[0] += ((UINT4)inputLen << 3)) < ((UINT4)inputLen << 3))
context->count[1]++;
context->count[1] += ((UINT4)inputLen >> 29);
比较看不懂:
((UINT4)inputLen << 3)) < ((UINT4)inputLen << 3))
好像总是返回 0,对吧?
最佳答案
没有这样的比较。看看括号是如何配对的:
是
(X < ((UINT4)inputLen << 3))
其中 X
=
(context->count[0] += ((UINT4)inputLen << 3))
关于c - 这个比较是假的吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44775805/