summaryrefslogtreecommitdiff
path: root/lib/sys/systypes.myr
diff options
context:
space:
mode:
authorandrewchambers <andrewchamberss@gmail.com>2016-07-23 15:59:21 +1200
committerOri Bernstein <ori@eigenstate.org>2016-07-22 20:59:21 -0700
commitb24fd14c329aa00b0d9703864f875258164216c4 (patch)
tree5b93ec3b2c7a380b78483a0c0b1a8e5b9df4e951 /lib/sys/systypes.myr
parentb0556e8d98eb7ab7cdc0826de7cdcfcef935db82 (diff)
downloadmc-b24fd14c329aa00b0d9703864f875258164216c4.tar.gz
make bsearch use unsigned indexes (#118)
Diffstat (limited to 'lib/sys/systypes.myr')
-rw-r--r--lib/sys/systypes.myr2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sys/systypes.myr b/lib/sys/systypes.myr
index e39f279..126b4b6 100644
--- a/lib/sys/systypes.myr
+++ b/lib/sys/systypes.myr
@@ -1,6 +1,6 @@
pkg sys =
type size = int64 /* spans entire address space */
- type usize = int64 /* signed size */
+ type usize = uint64 /* unsigned size */
type off = int64 /* file offsets */
type intptr = uint64/* can hold any pointer losslessly */
type time = int64 /* milliseconds since epoch */