Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(80)

Unified Diff: src/cmd/ld/lib.c

Issue 4104041: correctly compile -0 floating point constants
Patch Set: code review 4104041: correctly compile -0 floating point constants Created 13 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/cmd/gc/obj.c ('k') | src/lib9/fmt/fltfmt.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/cmd/ld/lib.c
===================================================================
--- a/src/cmd/ld/lib.c
+++ b/src/cmd/ld/lib.c
@@ -682,6 +682,8 @@
if(e->h == 0)
return 0;
+ if(e->h == (int32)1<<31)
+ return (int32)1<<31;
exp = (e->h>>20) & ((1L<<11)-1L);
exp -= (1L<<10) - 2L;
v = (e->h & 0xfffffL) << 3;
« no previous file with comments | « src/cmd/gc/obj.c ('k') | src/lib9/fmt/fltfmt.c » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b