Browse Source

Fix size_t in u.h for intel compiler

intel compiler is very picky about this and probably right.

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Ronald G. Minnich 3 years ago
parent
commit
d0bb108c42
1 changed files with 1 additions and 1 deletions
  1. 1 1
      amd64/include/u.h

+ 1 - 1
amd64/include/u.h

@@ -20,7 +20,7 @@ typedef	long long	int64_t;
 typedef uint64_t uintptr;
 typedef uint64_t uintptr_t;
 typedef uint32_t	usize;
-typedef int64_t size_t;
+typedef unsigned long size_t;
 typedef	uint32_t		Rune;
 typedef union FPdbleword FPdbleword;
 typedef uintptr		jmp_buf[10]; // for registers.