public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5009c5
)
changed ad2str function not to add +0 at labels
author
sater
<none@none>
Mon, 22 Sep 1986 13:15:15 +0000
(13:15 +0000)
committer
sater
<none@none>
Mon, 22 Sep 1986 13:15:15 +0000
(13:15 +0000)
mach/proto/ncg/gencode.c
patch
|
blob
|
history
diff --git
a/mach/proto/ncg/gencode.c
b/mach/proto/ncg/gencode.c
index
d2ee010
..
1f84faf
100644
(file)
--- a/
mach/proto/ncg/gencode.c
+++ b/
mach/proto/ncg/gencode.c
@@
-84,6
+84,8
@@
string ad2str(ad) addr_t ad; {
if (ad.ea_str==0)
ad.ea_str="";
+ if (ad.ea_off==0)
+ return(mystrcpy(ad.ea_str));
sprintf(buf,"%s%c%ld",ad.ea_str,ad.ea_off>=0 ? '+' : ' ',(long)ad.ea_off);
return(mystrcpy(buf));
}