mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
Apply review comments
This commit is contained in:
@@ -713,7 +713,6 @@ class DoubleLiteral extends Literal, @doubleliteral {
|
||||
override string getAPrimaryQlClass() { result = "DoubleLiteral" }
|
||||
}
|
||||
|
||||
// Implementation taken from @p0 at https://github.com/github/codeql/issues/4145
|
||||
bindingset[s]
|
||||
private int fromHex(string s) {
|
||||
exists(string digits | s.toUpperCase() = digits |
|
||||
@@ -744,7 +743,7 @@ class CharacterLiteral extends Literal, @characterliteral {
|
||||
* the character to an `int`.
|
||||
*/
|
||||
int getCodePointValue() {
|
||||
if this.getLiteral().matches("'\\u%'")
|
||||
if this.getLiteral().matches("'\\u____'")
|
||||
then result = fromHex(this.getLiteral().substring(3, 7))
|
||||
else result.toUnicode() = this.getValue()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user