We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d4a079 commit 1bac834Copy full SHA for 1bac834
src/lib/Imp.hs
@@ -1335,9 +1335,9 @@ emitLoop hint d n cont = do
1335
return $ Abs b body
1336
emitStatement $ IFor d n loopBody
1337
1338
-_emitDebugPrint :: Emits n => String -> IExpr n -> SubstImpM i n ()
+_emitDebugPrint :: (ImpBuilder m, Emits n) => String -> IExpr n -> m n ()
1339
_emitDebugPrint fmt x = do
1340
- x' <- cast x (Scalar Word64Type)
+ x' <- emitInstr $ ICastOp (Scalar Int64Type) x
1341
emitStatement $ DebugPrint fmt x'
1342
1343
restructureScalarOrPairType :: SType n -> [IExpr n] -> SubstImpM i n (SAtom n)
0 commit comments