mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
mllib: fix JSON_tests
Properly write int64 values, so they are handled correctly also on 32bit architectures.
This commit is contained in:
@@ -168,7 +168,7 @@ let test_builder () =
|
||||
"os-version", JSON.String "phony-debian";
|
||||
"full-name", JSON.String "Phony Debian";
|
||||
"arch", JSON.String "x86_64";
|
||||
"size", JSON.Int64 (Int64.of_int 536870912);
|
||||
"size", JSON.Int64 536870912_L;
|
||||
"notes", JSON.Dict [
|
||||
"C", JSON.String "Phony Debian look-alike used for testing.";
|
||||
];
|
||||
@@ -178,7 +178,7 @@ let test_builder () =
|
||||
"os-version", JSON.String "phony-fedora";
|
||||
"full-name", JSON.String "Phony Fedora";
|
||||
"arch", JSON.String "x86_64";
|
||||
"size", JSON.Int64 (Int64.of_int 1073741824);
|
||||
"size", JSON.Int64 1073741824_L;
|
||||
"notes", JSON.Dict [
|
||||
"C", JSON.String "Phony Fedora look-alike used for testing.";
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user