diff options
author | Juan Linietsky <reduzio@gmail.com> | 2017-01-20 19:24:49 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-20 19:24:49 -0300 |
commit | ee0f53df52d88ca57079579f3f3e943e7e40f53a (patch) | |
tree | fcf670f1e8aec411c6deaf97e9fc77bf5c195f31 /tools/editor/script_editor_debugger.cpp | |
parent | 72a02555850016ab792cf498c5370983d3b72832 (diff) | |
parent | 6f4f9aa6ded6da027c84cc466c767334dc3d3362 (diff) | |
download | redot-engine-ee0f53df52d88ca57079579f3f3e943e7e40f53a.tar.gz |
Merge pull request #7528 from tagcup/real_t_float_fixes
Use real_t rather than float or double in generic functions (core/mat…
Diffstat (limited to 'tools/editor/script_editor_debugger.cpp')
-rw-r--r-- | tools/editor/script_editor_debugger.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/editor/script_editor_debugger.cpp b/tools/editor/script_editor_debugger.cpp index 42ab234d4b..d5cca06820 100644 --- a/tools/editor/script_editor_debugger.cpp +++ b/tools/editor/script_editor_debugger.cpp @@ -826,7 +826,7 @@ void ScriptEditorDebugger::_performance_draw() { Ref<StyleBox> graph_sb = get_stylebox("normal","TextEdit"); Ref<Font> graph_font = get_font("font","TextEdit"); - int cols = Math::ceil(Math::sqrt(which.size())); + int cols = Math::ceil(Math::sqrt((float)which.size())); int rows = (which.size()+1)/cols; if (which.size()==1) rows=1; |