aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLucio De Re <lucio.dere@gmail.com>2014-04-07 08:40:13 -0700
committerIan Lance Taylor <iant@golang.org>2014-04-07 08:40:13 -0700
commit24192bbd001385ca15ed1f769ddb467e41f4bf9c (patch)
tree632bee39c265a2e17f51172482071b48f9af46a9 /include
parent8076f21e8ea9cd3fc7d0fd23b2262fce662e4bde (diff)
downloadgo-24192bbd001385ca15ed1f769ddb467e41f4bf9c.tar.xz
libbio, libmach: warnings from the Plan 9 tool chain
Superficial inconsistencies that trigger warnings in Plan 9. Small enough to be considered trivial and seemingly benign outside of the Plan 9 environment. LGTM=iant R=golang-codereviews, 0intro, iant CC=golang-codereviews https://golang.org/cl/73460043
Diffstat (limited to 'include')
-rw-r--r--include/bio.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/bio.h b/include/bio.h
index c9c3332e82..f61409b8a3 100644
--- a/include/bio.h
+++ b/include/bio.h
@@ -73,7 +73,7 @@ struct Biobuf
* next few bytes in little-endian order.
*/
#define BGETC(bp)\
- ((bp)->icount?(bp)->ebuf[(bp)->icount++]:Bgetc((bp)))
+ ((bp)->icount?(int)((bp)->ebuf[(bp)->icount++]):Bgetc((bp)))
#define BGETLE2(bp)\
((bp)->icount<=-2?((bp)->icount+=2,((bp)->ebuf[(bp)->icount-2])|((bp)->ebuf[(bp)->icount-1]<<8)):Bgetle2((bp)))
#define BGETLE4(bp)\