Commits

Anonymous committed 5bd01d7

+ [u]int16

Comments (0)

Files changed (1)

lib/cstruct_codegen.ml

       }
 ;
 
-value int8  = fld 1 "int8"  "int"
-  and uint8 = fld 1 "uint8" "int"
-  and int64 = fld 8 "int64" "int64"
+(*                 bytes
+                   |  getter-setter
+                   |  |        ocaml type
+                   |  |        |            *)
+value int8   = fld 1  "int8"   "int"
+  and uint8  = fld 1  "uint8"  "int"
+  and int16  = fld 2  "int16"  "int"
+  and uint16 = fld 2  "uint16" "int"
+  and int64  = fld 8  "int64"  "int64"
 ;