Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
Sh0g0-1758 committed Aug 23, 2024
1 parent 57596a4 commit c618583
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions pkg/hintrunner/zero/hintparser.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,7 @@ func (expression DerefCastExp) Evaluate() (hinter.Reference, error) {
}

switch result := value.(type) {
case hinter.ApCellRef:
return hinter.Deref{Deref: result}, nil
case hinter.FpCellRef:
case hinter.ApCellRef, hinter.FpCellRef:
return hinter.Deref{Deref: result}, nil
case hinter.Deref:
return hinter.DoubleDeref{
Expand Down Expand Up @@ -277,11 +275,11 @@ func (expression ProdExp) Evaluate() (hinter.Reference, error) {

switch left := leftExp.(type) {
case hinter.ApCellRef, hinter.FpCellRef:
return nil, fmt.Errorf("invalid product expression")
return nil, fmt.Errorf("unexpected product expression")
default:
switch right := rightExp.(type) {
case hinter.ApCellRef, hinter.FpCellRef:
return nil, fmt.Errorf("invalid product expression")
return nil, fmt.Errorf("unexpected product expression")
default:
return hinter.BinaryOp{
Operator: hinter.Mul,
Expand Down

0 comments on commit c618583

Please sign in to comment.