英文:
Partially failed Android decompile contains a weird int: 65536(0x10000, float:9.18355E-41)
问题
我已使用APKTool和JadX反编译了一个应用程序,并尝试手动恢复一些未正确反编译的部分。到目前为止,进展缓慢但稳定,我已修复了所有其他问题。但是,我对以下行有点困惑:
r2 = 65536(0x10000, float:9.18355E-41)
我知道它应该是一个int
,因为这是我要传递给函数的签名。但是如何推断这个常量的值呢?
我只能通过Google找到其他反编译的信息,没有关于它真正值或如何计算它的线索。
英文:
I have decompiled an application using APKTool and JadX and I'm trying to manually restore a few spots that didn't decompile correctly. So far it's going slow but steady and I've fixed all of the other ones. But I'm a bit stumped by the following line:
r2 = 65536(0x10000, float:9.18355E-41)
I know it's supposed to be an int
because that's the signature of the function I'm passing it into. But how do I deduce the value of this constant?
I can only find other decompile dump by Googling it, no clues for it's true value or how to calculate it.
答案1
得分: 0
就像Joachim Suaer已经说过的那样,这只是一个编译器不确定是应该是整数还是浮点数的常数值。
英文:
Like Joachim Suaer already said it's just a constant value that the compiler is unsure of if it was meant to be an int or a float.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论