diff options
author | Michele Martone <michelemartone@users.sourceforge.net> | 2024-04-20 11:53:07 -0300 |
---|---|---|
committer | Rafael Laboissière <rafael@debian.org> | 2024-04-20 11:53:07 -0300 |
commit | cce688e97dd3fbf705c9885d8291715e113a05d9 (patch) | |
tree | c516ff065857930851c7f9c6b4646aa5e8969185 | |
parent | a9ae959634c5d88f36e26f45b09acf8281e3cab7 (diff) |
Fix FTBFS on armel, armhf, and i386 (type size mismatch)
Forwarded: no
Reviewed-By: Rafael Laboissière <rafael@debian.org>
Last-Update: 2024-04-19
Gbp-Pq: Name gtk-32bit-string-size-type.patch
-rw-r--r-- | src/GTKDevice.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/GTKDevice.cpp b/src/GTKDevice.cpp index 9fbd991..c5589bb 100644 --- a/src/GTKDevice.cpp +++ b/src/GTKDevice.cpp @@ -713,7 +713,7 @@ void do_rebuild_help_aliases_menu(GtkWidget *aliaMi, const bool help_or_cmd, con gtk_menu_item_set_submenu(GTK_MENU_ITEM(aliaMi), aliaMenu_), gtk_widget_set_tooltip_text(aliaMi, verbose_specs_?s:"" ); - for (auto a0 = 0UL, a1 = aliases_.find(' '); a0 < a1 && a1!=std::string::npos ; a0 = a1+1, a1 = aliases_.find(' ',a1+1) ) + for (decltype(aliases_.find(' ')) a0 = 0UL, a1 = aliases_.find(' '); a0 < a1 && a1!=std::string::npos ; a0 = a1+1, a1 = aliases_.find(' ',a1+1) ) { const auto alias = aliases_.substr(a0,a1-a0); GtkWidget * const aliMi = gtk_menu_item_new_with_label(alias.c_str()); @@ -744,7 +744,7 @@ void do_rebuild_help_variables_menu(GtkWidget *varsMi, const bool help_or_cmd, c gtk_menu_item_set_submenu(GTK_MENU_ITEM(varsMi), varsMenu_), gtk_widget_set_tooltip_text(varsMi, verbose_specs_?s:"" ); - for (auto v0 = 0UL, v1 = variables_.find(' '); v0 < v1 && v1!=std::string::npos ; v0 = v1+1, v1 = variables_.find(' ',v1+1) ) + for (decltype(variables_.find(' ')) v0 = 0UL, v1 = variables_.find(' '); v0 < v1 && v1!=std::string::npos ; v0 = v1+1, v1 = variables_.find(' ',v1+1) ) { const auto var = variables_.substr(v0,v1-v0); //void * vp = (void*) (variables_.c_str()+v0); @@ -779,7 +779,7 @@ void do_rebuild_help_commands_menu(GtkWidget *cmdsMi, const bool help_or_press, gtk_widget_set_tooltip_text(cmdsMi, verbose_specs_?s:"" ); - for (auto c0 = 0UL, c1 = commands_.find(' '); c0 < c1 && c1!=std::string::npos ; c0 = c1+1, c1 = commands_.find(' ',c1+1) ) + for (decltype(commands_.find(' ')) c0 = 0UL, c1 = commands_.find(' '); c0 < c1 && c1!=std::string::npos ; c0 = c1+1, c1 = commands_.find(' ',c1+1) ) { const auto cmd = commands_.substr(c0,c1-c0); //void * cp = (void*) (commands_.c_str()+c0); |