summaryrefslogtreecommitdiff
path: root/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'types.h')
-rw-r--r--types.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/types.h b/types.h
index 388727c..d1c5bf5 100644
--- a/types.h
+++ b/types.h
@@ -68,7 +68,7 @@ typedef struct {
} BlockArr;
typedef struct {
- U64 n;
+ I64 n;
void *data;
} Slice;
@@ -347,7 +347,8 @@ typedef enum {
UNARY_ADDRESS, /* &x */
UNARY_DEREF, /* *x */
UNARY_NOT, /* !x */
- UNARY_DEL
+ UNARY_DEL, /* del x */
+ UNARY_LEN /* x.len ; replaces BINARY_DOT len when typing */
} UnaryOp;
typedef enum {