Quellcode durchsuchen

Added a small detail.

Eiyeron Fulmincendii vor 9 Jahren
Ursprung
Commit
c4ae5d83f2
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
  1. 2 0
      src/textbox/Textbox.cpp

+ 2 - 0
src/textbox/Textbox.cpp

@@ -102,6 +102,8 @@ void Textbox::add_letter(unsigned nb_letters)
     // Mmh, you who enters here, try to forget how the core logic is programmed.
     // Myself don't have a frigging clue on how to clean it but it *works*.
     // If you ever clean it, I'll be eternally thankful :-°
+    // Actually, it works as it does right now, but the signedness is messy as hell
+    // and changing it would most likely break it everywhere.
     for (unsigned i = 0;
          (i < nb_letters) &&
          (buffer_index < 0 || buffer_index < static_cast<signed>(buffer.size()) - 1);