Skip to content

Commit 9371988

Browse files
authored
faster conditional order
1 parent de7a2d0 commit 9371988

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/main/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,7 @@ int main(int argc, char ** argv) {
797797
assistant_ss << common_token_to_piece(ctx, id, false);
798798
}
799799

800-
if ((waiting_for_first_input || n_past > 0) && is_interacting) {
800+
if ((n_past > 0 || waiting_for_first_input) && is_interacting) {
801801
LOG_DBG("waiting for user input\n");
802802

803803
if (params.conversation_mode) {
@@ -887,7 +887,7 @@ int main(int argc, char ** argv) {
887887
input_echo = false; // do not echo this again
888888
}
889889

890-
if (waiting_for_first_input || n_past > 0) {
890+
if (n_past > 0 || waiting_for_first_input) {
891891
if (is_interacting) {
892892
common_sampler_reset(smpl);
893893
}

0 commit comments

Comments
 (0)