diff options
author | 2023-03-31 22:37:42 +0000 | |
---|---|---|
committer | 2023-04-03 22:50:25 +0000 | |
commit | f24b9a438d4246607d14eaa04d405c089cb758db (patch) | |
tree | 97a70da03e609314ff07e2d52096a1b1523dd172 /tools/aapt2/ResourceValues.h | |
parent | 00558ac53ab84e3ddc9e356452a32c8a0b8ab437 (diff) |
Add additional check on float precision after parsing, only compile the
value when precision is not lost.
Bug: b/69347762
Test: Verified affected atests pass
Change-Id: I8e4fcd420a924f0e949bfd3a8aae23d1e7d582b1
Diffstat (limited to 'tools/aapt2/ResourceValues.h')
-rw-r--r-- | tools/aapt2/ResourceValues.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/aapt2/ResourceValues.h b/tools/aapt2/ResourceValues.h index 6f9dccbd3bcc..daf8814f497b 100644 --- a/tools/aapt2/ResourceValues.h +++ b/tools/aapt2/ResourceValues.h @@ -285,6 +285,7 @@ struct BinaryPrimitive : public TransformableItem<BinaryPrimitive, BaseItem<Bina bool Flatten(android::Res_value* out_value) const override; void Print(std::ostream* out) const override; void PrettyPrint(text::Printer* printer) const override; + std::string toPrettyString() const; }; struct Attribute : public TransformableValue<Attribute, BaseValue<Attribute>> { |