Skip to content

Commit

Permalink
Update go_file.py
Browse files Browse the repository at this point in the history
go里面没有关键字float,因此将float改为float32
  • Loading branch information
hongshaodalao authored Jul 30, 2019
1 parent 38ab02d commit d0520f0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Tools/TableCode/go_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ def GenGoTableManagerFile(tableName, fieldsIndex, table):

if fieldtype == "int[]":
fieldtype = "[]int"

if fieldtype == "float":
fieldtype = "float32"

fieldName = table.cell(3, index).value
fileContent += \
Expand Down

0 comments on commit d0520f0

Please sign in to comment.