diff options
author | tomsmeding <tom.smeding@gmail.com> | 2017-01-26 07:38:58 +0100 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2017-01-26 07:38:58 +0100 |
commit | b8f4f48518fbf34645d1b067f91831927b6f8602 (patch) | |
tree | 453645bd03b5d31292de3009e6c49b24c98d94dc | |
parent | bc879a89174cd7f070e9d279ee89bbbc2e408055 (diff) |
type-o
-rw-r--r-- | codegen.hs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -272,7 +272,7 @@ castOperand orig@(A.LocalReference (A.IntegerType s1) _) t2@(TypeInt s2) castOperand orig@(A.ConstantOperand (A.C.Int s1 val)) t2@(TypeInt s2) | fromIntegral s1 == s2 = return orig | fromIntegral s1 < s2 = return $ A.ConstantOperand (A.C.Int (fromIntegral s2) val) - | fromIntegral s1 > s2 = throwError $ "Integer " ++ show val ++ " too large for tyoe '" ++ pshow t2 ++ "'" + | fromIntegral s1 > s2 = throwError $ "Integer " ++ show val ++ " too large for type '" ++ pshow t2 ++ "'" castOperand _ _ = undefined |