/
githubmirror
/
go
Обзор
Документация
Войти
/
githubmirror
/
go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/fixedbugs/issue40746.go
19 строк
284 B
Josh Bleecher Snyder
cmd/compile: correct type of CvtBoolToUint8 values
14 авг 2020, 01:59
14 авг 2020, 01:59
cde5fd1
Код
Авторство
О чём код?
// compile // Copyright 2020 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package p func f(x byte, b bool) byte { var c byte if b { c = 1 } if int8(c) < 0 { x++ } return x }