Skip to content

Commit

Permalink
small edits
Browse files Browse the repository at this point in the history
  • Loading branch information
bravit committed Apr 19, 2021
1 parent 913e116 commit ac97c39
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions expr/rpn/EvalRPNExcept.hs
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ pop = get >>= pop'

oneElementOnStack :: EvalM ()
oneElementOnStack = do
l <- gets length
when (l /= 1) $ throwError ExtraElements
len <- gets length
when (len /= 1) $ throwError ExtraElements

readVar :: Text -> EvalM Integer
readVar name = do
Expand Down
2 changes: 1 addition & 1 deletion ip/lookup/ParseIP.hs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ parseIPIterStrict chars = go chars 0 0 1 0
goodComp _ _ = False

addComp !ip !ipcomp = shiftL ip 8 + ipcomp
addDigit !ipcomp c = ipcomp * 10 + digitToInt c
addDigit !ipcomp !c = ipcomp * 10 + digitToInt c


parseIP'' :: String -> Maybe IP
Expand Down

0 comments on commit ac97c39

Please sign in to comment.