diff --git a/src/glsl_glyphs/constants.py b/src/glsl_glyphs/constants.py index 1cd4242..0e3b7c8 100644 --- a/src/glsl_glyphs/constants.py +++ b/src/glsl_glyphs/constants.py @@ -26,7 +26,7 @@ GLSL_SET_FUNCTIONS = """ int {0}_set_glyph(int set, float v) {{ if (v < .0 || v >= 1. || set < 0. || set >= {1}_SETS) {{ - return 0.; + return 0; }} return {0}_sets[set * 2] + int(v * {0}_sets[set * 2 + 1]); }} diff --git a/src/glsl_glyphs/sentences.py b/src/glsl_glyphs/sentences.py index 7dd972f..8d1064d 100644 --- a/src/glsl_glyphs/sentences.py +++ b/src/glsl_glyphs/sentences.py @@ -40,7 +40,7 @@ class Sentence: + [ ");", "", - f"const int {name}_sentences_lengths[{len(sentences)}](", + f"const int {name}_sentences_lengths[] = int[{len(sentences)}](", " " * indent + ", ".join(str(len(s.data)) for s in sentences), ");", ]