Skip to content

Commit e7e73ec

Browse files
committed
fixup! Add float16 support
1 parent b8f8d08 commit e7e73ec

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/configure/gen_c_primitives.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ let () =
135135
|[_,C.C_define.Value.String s] -> s
136136
|_ -> failwith ("unable to find string definition for " ^ l) in
137137
print_string header;
138-
let has_float16 = Int.equal (import_int "FLOAT16_AVAILABLE") 1 in
138+
let has_float16 = (import_int "FLOAT16_AVAILABLE") = 1 in
139139
let c_primitives = c_primitives has_float16 in
140140
generate "sizeof" "int" (fun { size } ->
141141
match size with

src/ctypes/ctypes_float16_availability.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
*/
77

88

9-
#ifndef CTYPES_FLOAT16_COMPATIBILITY_H
10-
#define CTYPES_FLOAT16_COMPATIBILITY_H
9+
#ifndef CTYPES_FLOAT16_AVAILABILITY_H
10+
#define CTYPES_FLOAT16_AVAILABILITY_H
1111

1212
#define __STDC_WANT_IEC_60559_TYPES_EXT__
1313
#include <float.h>
@@ -33,4 +33,4 @@
3333
/* float16_available : unit -> bool */
3434
extern value ctypes_float16_available(value unit);
3535

36-
#endif /* CTYPES_FLOAT16_COMPATIBILITY_H */
36+
#endif /* CTYPES_FLOAT16_AVAILABILITY_H */

0 commit comments

Comments
 (0)