aboutsummaryrefslogtreecommitdiff
path: root/src/value.zig
diff options
context:
space:
mode:
authorLemonBoy <thatlemon@gmail.com>2021-10-23 10:20:57 +0200
committerAndrew Kelley <andrew@ziglang.org>2021-10-23 22:48:25 -0400
commit1690b35770a97aec4b8a7b1b31a61b01e04f5656 (patch)
tree33e221f8173d3732e0cb5899dc5e50fe176ace78 /src/value.zig
parent22b4c9e1a9595bd94ada4c500a430e2668ffcd07 (diff)
downloadzig-1690b35770a97aec4b8a7b1b31a61b01e04f5656.tar.gz
zig-1690b35770a97aec4b8a7b1b31a61b01e04f5656.zip
std: Fix edge case in TLS tp calculation
The TLS area may be located in the upper part of the address space and, if the platform expects a constant offset to be applied, may make the tp register calculation overflow. Use +% instead of +, the overflow is harmless.
Diffstat (limited to 'src/value.zig')
0 files changed, 0 insertions, 0 deletions