From ccca8a3e6c528618091328f0f6afaa5961ac3e9c Mon Sep 17 00:00:00 2001 From: Arthur Gleckler Date: Tue, 16 Feb 1993 00:02:14 +0000 Subject: [PATCH] Fix = vs. == bug in OS_baud_rate_to_index. --- v7/src/microcode/uxterm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/v7/src/microcode/uxterm.c b/v7/src/microcode/uxterm.c index 9d06304bb..a90d360be 100644 --- a/v7/src/microcode/uxterm.c +++ b/v7/src/microcode/uxterm.c @@ -1,6 +1,6 @@ /* -*-C-*- -$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/uxterm.c,v 1.19 1992/05/05 06:38:52 jinx Exp $ +$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/uxterm.c,v 1.20 1993/02/16 00:02:14 arthur Exp $ Copyright (c) 1990-1992 Massachusetts Institute of Technology @@ -379,7 +379,7 @@ DEFUN (OS_baud_rate_to_index, (rate), unsigned int rate) unsigned int * scan = baud_convert; unsigned int * end = (scan + BAUD_CONVERT_LENGTH); while (scan < end) - if ((*scan++) = rate) + if ((*scan++) == rate) return ((scan - 1) - baud_convert); return (-1); } -- 2.25.1