Skip to content

Commit

Permalink
Исправление.
Browse files Browse the repository at this point in the history
  • Loading branch information
vic78 committed Sep 5, 2021
1 parent d0199ba commit b47b65f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Semantics/Scope.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export class Scope
case TypesIds.INTEGER:
return constant.symbol.value;
case TypesIds.CHAR:
return constant.symbol.stringValue.charCodeAt(0);
return constant.symbol.value.charCodeAt(0);
case TypesIds.ENUM:
let enumElement = this.getEnumElement(constant);
return enumElement.getIndex();
Expand Down

0 comments on commit b47b65f

Please sign in to comment.