Régis Décamps c1534fc96d Cast long yychar to int.
Starting from JFlex 1.8.0, `yychar` is a long.

However, it is used to build an antlr `CommonToken` which takes an int.
Hence, explicit casting is needed.

I propose to cast the `yychar` with `java.lang.Math.toIntExact()` which throw an ArithmeticException in case of overflow.
This is acceptable because the previous code would have returned an overflowed (negative) position.

See https://github.com/jflex-de/jflex/pull/605 for details.
2020-03-30 11:24:38 -07:00
2015-02-18 10:55:45 -05:00
2018-05-23 13:34:16 -07:00
2020-03-30 11:24:38 -07:00
2020-02-05 12:09:45 -08:00
2017-02-22 17:05:01 -08:00

About

smali/baksmali is an assembler/disassembler for the dex format used by dalvik, Android's Java VM implementation. The syntax is loosely based on Jasmin's/dedexer's syntax, and supports the full functionality of the dex format (annotations, debug info, line info, etc.)

Downloads are at https://bitbucket.org/JesusFreke/smali/downloads/. If you are interested in submitting a patch, feel free to send me a pull request here.

See the wiki for more info/news/release notes/etc.

Support

  • github Issue tracker - For any bugs/issues/feature requests
  • #smali on freenode - Free free to drop by and ask a question. Don't expect an instant response, but if you hang around someone will respond.
Description
smali/baksmali
Readme 11 MiB
Languages
Java 52.6%
Smali 45%
GAP 1.6%
Lex 0.4%
Ragel 0.3%