Partially failed Android decompile contains a weird int: 65536(0x10000, float:9.18355E-41)

huangapple go评论87阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2020年10月20日 19:06:01
  • 转载请务必保留本文链接:https://go.coder-hub.com/64443891.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定