Commit 367ea908bd

Andrew Kelley <superjoe30@gmail.com>
2015-12-09 20:32:26
readme: update int types
1 parent 7b181b5
Changed files (1)
README.md
@@ -93,30 +93,30 @@ make
 
 ## Primitive Numeric Types:
 
-zig          |        C equivalent | Description
--------------|---------------------|-------------------------------
-        bool |                bool |  unsigned 1-bit integer
-          i8 |              int8_t |    signed 8-bit integer
-          u8 |             uint8_t |  unsigned 8-bit integer
-         i16 |             int16_t |   signed 16-bit integer
-         u16 |            uint16_t | unsigned 16-bit integer
-         i32 |             int32_t |   signed 32-bit integer
-         u32 |            uint32_t | unsigned 32-bit integer
-         i64 |             int64_t |   signed 64-bit integer
-         u64 |            uint64_t | unsigned 64-bit integer
-         f32 |               float |  32-bit IEE754 floating point
-         f64 |              double |  64-bit IEE754 floating point
-        f128 |         long double | 128-bit IEE754 floating point
-       isize |            intptr_t |   signed pointer sized integer
-       usize |           uintptr_t | unsigned pointer sized integer
-     c_short |               short | for API compatibility with C
-    c_ushort |      unsigned short | for API compatibility with C
-       c_int |                 int | for API compatibility with C
-      c_uint |        unsigned int | for API compatibility with C
-      c_long |                long | for API compatibility with C
-     c_ulong |       unsigned long | for API compatibility with C
-  c_longlong |           long long | for API compatibility with C
- c_ulonglong |  unsigned long long | for API compatibility with C
+zig          |        C equivalent    | Description
+-------------|------------------------|-------------------------------
+        bool |                   bool |  unsigned 1-bit integer
+          i8 |    signed char, int8_t |    signed 8-bit integer
+          u8 | unsigned char, uint8_t |  unsigned 8-bit integer
+         i16 |                int16_t |   signed 16-bit integer
+         u16 |               uint16_t | unsigned 16-bit integer
+         i32 |                int32_t |   signed 32-bit integer
+         u32 |               uint32_t | unsigned 32-bit integer
+         i64 |                int64_t |   signed 64-bit integer
+         u64 |               uint64_t | unsigned 64-bit integer
+         f32 |                  float |  32-bit IEE754 floating point
+         f64 |                 double |  64-bit IEE754 floating point
+        f128 |            long double | 128-bit IEE754 floating point
+       isize |               intptr_t |   signed pointer sized integer
+       usize |              uintptr_t | unsigned pointer sized integer
+     c_short |                  short | for API compatibility with C
+    c_ushort |         unsigned short | for API compatibility with C
+       c_int |                    int | for API compatibility with C
+      c_uint |           unsigned int | for API compatibility with C
+      c_long |                   long | for API compatibility with C
+     c_ulong |          unsigned long | for API compatibility with C
+  c_longlong |              long long | for API compatibility with C
+ c_ulonglong |     unsigned long long | for API compatibility with C
 
 ## Grammar