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 42f18a9 commit 862877aCopy full SHA for 862877a
lib/field.ml
@@ -74,7 +74,9 @@ let convert field typ unsigned =
74
let open Unsigned in
75
match typ, unsigned with
76
| `Null, _ -> `Null
77
- | (`Tiny | `Year), _ -> `Int (int_of_char (cast_to char field))
+ | `Year, _
78
+ | `Tiny, true -> `Int (int_of_char (cast_to char field))
79
+ | `Tiny, false -> `Int (cast_to schar field)
80
| `Short, true -> `Int (cast_to int field)
81
| `Short, false -> `Int (UInt.to_int (cast_to uint field))
82
| (`Int24 | `Long), true -> `Int (UInt32.to_int (cast_to uint32_t field))
0 commit comments