From 19c9615e9048fa7f1b9e144ef847d12b093289f4 Mon Sep 17 00:00:00 2001 From: Sean Barrett Date: Sat, 27 Aug 2016 12:36:26 -0700 Subject: [PATCH] rect_pack patch; fix typo in stb_textedit --- stb_rect_pack.h | 4 ++-- stb_textedit.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/stb_rect_pack.h b/stb_rect_pack.h index 94d8a9e..58e98ea 100644 --- a/stb_rect_pack.h +++ b/stb_rect_pack.h @@ -279,9 +279,9 @@ static int stbrp__skyline_find_min_y(stbrp_context *c, stbrp_node *first, int x0 stbrp_node *node = first; int x1 = x0 + width; int min_y, visited_width, waste_area; - + STBRP__NOTUSED(c); - + STBRP_ASSERT(first->x <= x0); #if 0 diff --git a/stb_textedit.h b/stb_textedit.h index 3bae1b1..520cb03 100644 --- a/stb_textedit.h +++ b/stb_textedit.h @@ -634,7 +634,7 @@ static int stb_textedit_move_to_word_previous( STB_TEXTEDIT_STRING *str, int c ) #ifndef STB_TEXTEDIT_MOVEWORDRIGHT static int stb_textedit_move_to_word_next( STB_TEXTEDIT_STRING *str, int c ) { - const int len = STB_TEXTEDIT_STRINGLEN(_str); + const int len = STB_TEXTEDIT_STRINGLEN(str); ++c; // always move at least one character while( c < len && !is_word_boundary( str, c ) ) ++c;