]> Cypherpunks repositories - gostls13.git/commitdiff
libbio: add casts to eliminate -Wconversion warning
authorIan Lance Taylor <iant@golang.org>
Mon, 14 Apr 2014 16:36:47 +0000 (09:36 -0700)
committerIan Lance Taylor <iant@golang.org>
Mon, 14 Apr 2014 16:36:47 +0000 (09:36 -0700)
LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/87140044

src/libbio/bgetc.c

index 3399fb16b310b433f373af1b6ed6ae922c37d810..ceb5cb13f8c75eabf111f325c7fe0e1e25c91945 100644 (file)
@@ -83,7 +83,7 @@ Bgetle4(Biobuf *bp)
 
        l = Bgetle2(bp);
        h = Bgetle2(bp);
-       return l|((uint32)h<<16);
+       return (int)((uint32)l|((uint32)h<<16));
 }
 
 int