Fix in 12.2

This commit is contained in:
ArkBriar
2015-11-06 13:03:46 +08:00
parent 3327c5a1c6
commit a91076563e
2 changed files with 2 additions and 2 deletions

View File

@@ -71,7 +71,7 @@ func main() {
// panic(err.Error()) // panic(err.Error())
} }
fmt.Printf("%s\n", string(buf)) fmt.Printf("%s\n", string(buf))
err = ioutil.WriteFile(outputFile, buf, 0x644) err = ioutil.WriteFile(outputFile, buf, 0644) // oct, not hex
if err != nil { if err != nil {
panic(err. Error()) panic(err. Error())
} }

View File

@@ -14,7 +14,7 @@ func main() {
panic(err.Error()) panic(err.Error())
} }
fmt.Printf("%s\n", string(buf)) fmt.Printf("%s\n", string(buf))
err = ioutil.WriteFile(outputFile, buf, 0x644) err = ioutil.WriteFile(outputFile, buf, 0644) // oct, not hex
if err != nil { if err != nil {
panic(err.Error()) panic(err.Error())
} }