Compare commits

..

No commits in common. "97a1ff5186f6069b57086ab0e6e9512f69fa2bbf" and "7e1409596a7984b805002dacc3d2147f2827d6aa" have entirely different histories.

2 changed files with 2 additions and 5 deletions

View File

@ -16,7 +16,7 @@ protobuf_static_steamos:
- echo $BASE_PREFIX_PATH - echo $BASE_PREFIX_PATH
- mkdir deps - mkdir deps
- cd deps - cd deps
- git clone --branch 21.x https://github.com/protocolbuffers/protobuf.git - git clone https://github.com/protocolbuffers/protobuf.git
- cd protobuf - cd protobuf
- sh autogen.sh - sh autogen.sh
- ./configure "CC=gcc-4.9 -m32" "CXX=g++-4.9 -m32" CPPFLAGS="-fPIC -Ofast" CXXFLAGS="-fPIC -Ofast" --prefix=$BASE_PREFIX_PATH/protobuf/prefix_x86/ --disable-shared --enable-static - ./configure "CC=gcc-4.9 -m32" "CXX=g++-4.9 -m32" CPPFLAGS="-fPIC -Ofast" CXXFLAGS="-fPIC -Ofast" --prefix=$BASE_PREFIX_PATH/protobuf/prefix_x86/ --disable-shared --enable-static

View File

@ -64,10 +64,7 @@ def generate_stats_achievements(schema, config_directory):
for s in stats_out: for s in stats_out:
default_num = 0 default_num = 0
if (s['type'] == 'int'): if (s['type'] == 'int'):
try: default_num = int(s['default'])
default_num = int(s['default'])
except ValueError:
default_num = int(float(s['default']))
else: else:
default_num = float(s['default']) default_num = float(s['default'])
output_stats += "{}={}={}\n".format(s['name'], s['type'], default_num) output_stats += "{}={}={}\n".format(s['name'], s['type'], default_num)