]> Cypherpunks repositories - gostls13.git/commit
cmd/gc: fix undefined behaviour warnings in mparith3.c
authorDave Cheney <dave@cheney.net>
Wed, 27 Aug 2014 05:23:38 +0000 (15:23 +1000)
committerDave Cheney <dave@cheney.net>
Wed, 27 Aug 2014 05:23:38 +0000 (15:23 +1000)
commit9c504696f46295c7d2bbad3da7cb4854227a13b7
tree0b7334d2f8948928e0a22e2d17cb561e7e95ea63
parent1660ece7695a90e178aa08ef6e413811957791d5
cmd/gc: fix undefined behaviour warnings in mparith3.c

Update #8527

Fixes two warnings:

src/cmd/gc/mparith3.c:255:10: runtime error: shift exponent 52 is too large for 32-bit type 'int'
src/cmd/gc/mparith3.c:254:14: runtime error: shift exponent 52 is too large for 32-bit type 'int'

LGTM=rsc
R=r, dvyukov, rsc
CC=golang-codereviews
https://golang.org/cl/134940044
src/cmd/gc/mparith3.c