aboutsummaryrefslogtreecommitdiff
path: root/core/slice
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-02-23 20:39:59 +0000
committergingerBill <bill@gingerbill.org>2021-02-23 20:39:59 +0000
commit79eb46bce3ab28336a8e44bcff78d71fa6287820 (patch)
tree90a0c66523c389f165c051aaabc8568434eec332 /core/slice
parent533dde464848d8774e55e2fd9e267096c5af5d00 (diff)
Replace `inline` uses in the rest of core with `#force_inline`
Diffstat (limited to 'core/slice')
-rw-r--r--core/slice/ptr.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/slice/ptr.odin b/core/slice/ptr.odin
index defd144fa..a63272818 100644
--- a/core/slice/ptr.odin
+++ b/core/slice/ptr.odin
@@ -6,7 +6,7 @@ ptr_add :: proc(p: $P/^$T, x: int) -> ^T {
return (^T)(uintptr(p) + size_of(T)*x);
}
ptr_sub :: proc(p: $P/^$T, x: int) -> ^T {
- return inline ptr_add(p, -x);
+ return #force_inline ptr_add(p, -x);
}
ptr_swap_non_overlapping :: proc(x, y: rawptr, len: int) {