Skip to content

Commit 7d47749

Browse files
authored
Merge pull request #732 from FStarLang/protz/fix
Fix missing case in signed_of_unsigned
2 parents e693f1a + 79e89ac commit 7d47749

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/Constant.ml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ let unsigned_of_signed = function
6666
| Int16 -> UInt16
6767
| Int32 -> UInt32
6868
| Int64 -> UInt64
69-
| CInt | UInt8 | UInt16 | UInt32 | UInt64 | SizeT | PtrdiffT | Bool
69+
| PtrdiffT -> SizeT
70+
| CInt | UInt8 | UInt16 | UInt32 | UInt64 | SizeT | Bool
7071
| Float32 | Float64 -> raise (Invalid_argument "unsigned_of_signed")
7172

7273
let is_signed = function

0 commit comments

Comments
 (0)