mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
java: Fix bindtests when passing 64 bit integer literals.
This commit is contained in:
@@ -522,7 +522,7 @@ public class Bindtests {
|
||||
| CallOInt (n, v) ->
|
||||
" put(\"" ^ n ^ "\", " ^ string_of_int v ^ ");"
|
||||
| CallOInt64 (n, v) ->
|
||||
" put(\"" ^ n ^ "\", " ^ Int64.to_string v ^ "l);"
|
||||
" put(\"" ^ n ^ "\", " ^ Int64.to_string v ^ "L);"
|
||||
| CallOString (n, v) ->
|
||||
" put(\"" ^ n ^ "\", \"" ^ v ^ "\");"
|
||||
| CallOStringList (n, xs) ->
|
||||
@@ -547,7 +547,7 @@ public class Bindtests {
|
||||
"new String[]{" ^
|
||||
String.concat "," (List.map (sprintf "\"%s\"") xs) ^ "}"
|
||||
| CallInt i -> string_of_int i
|
||||
| CallInt64 i -> Int64.to_string i
|
||||
| CallInt64 i -> Int64.to_string i ^ "L"
|
||||
| CallBool b -> string_of_bool b
|
||||
| CallBuffer s ->
|
||||
"new byte[] { " ^ String.concat "," (
|
||||
|
||||
Reference in New Issue
Block a user