Commit caef3515 authored by Ilias Tsitsimpis's avatar Ilias Tsitsimpis

yaml: Backport upstream patch to fix tests on 32-bit machines

parent c4a0a843
haskell-yaml (0.8.32-4) unstable; urgency=medium
* Backport upstream patch to fix tests on 32-bit machines
-- Ilias Tsitsimpis <iliastsi@debian.org> Tue, 23 Oct 2018 16:31:21 +0300
haskell-yaml (0.8.32-3) unstable; urgency=medium
* Backport upstream patch to build against system libyaml
......
From 256c06dd7ddcd60018d0b02a06f991413fe2d80b Mon Sep 17 00:00:00 2001
From: Michael Snoyman <michael@snoyman.com>
Date: Sun, 30 Sep 2018 13:56:46 +0300
Subject: [PATCH] Use Int64 instead of Int #158
---
ChangeLog.md | 1 +
test/Data/YamlSpec.hs | 5 +++--
2 files changed, 4 insertions(+), 2 deletions(-)
Index: b/test/Data/YamlSpec.hs
===================================================================
--- a/test/Data/YamlSpec.hs
+++ b/test/Data/YamlSpec.hs
@@ -9,6 +9,7 @@ module Data.YamlSpec (main, spec) where
import qualified Text.Libyaml as Y
import qualified Data.ByteString.Char8 as B8
+import Data.Int (Int64)
import Test.HUnit hiding (Test, path)
@@ -190,8 +191,8 @@ spec = do
go "0o123" (83 :: Int)
go "0xC" (12 :: Int)
go "0xc" (12 :: Int)
- go "0xdeadBEEF" (3735928559 :: Int)
- go "0xDEADBEEF" (3735928559 :: Int)
+ go "0xdeadBEEF" (3735928559 :: Int64)
+ go "0xDEADBEEF" (3735928559 :: Int64)
go "1.23015e+3" (1230.15 :: Scientific)
go "12.3015e+02" (1230.15 :: Scientific)
go "1230.15" (1230.15 :: Scientific)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment