Fixed a syntactically illegal LET.
This commit is contained in:
		
							parent
							
								
									2ecccd3546
								
							
						
					
					
						commit
						759e929fa8
					
				
							
								
								
									
										18
									
								
								scsh/rw.scm
								
								
								
								
							
							
						
						
									
										18
									
								
								scsh/rw.scm
								
								
								
								
							|  | @ -101,15 +101,15 @@ | |||
| 				 read-fdport*-substring!/errno | ||||
| 				 (extensible-port-local-data fd/port))) | ||||
| 
 | ||||
| 	  (else ; Hack it | ||||
| 	   (let lp ((i start (+ i 1))) | ||||
| 	     (if (= i end) (- end start) | ||||
| 		 (let ((c (read-char fd/port))) | ||||
| 		   (if (eof-object? c) | ||||
| 		       (let ((nread (- i start))) | ||||
| 			 (and (not (zero? nread)) nread)) | ||||
| 		       (begin (string-set! s i c) | ||||
| 			      (lp (+ i 1))))))))))) | ||||
| 	  ;; Hack it | ||||
| 	  (else (let lp ((i start)) | ||||
| 		  (if (= i end) (- end start) | ||||
| 		      (let ((c (read-char fd/port))) | ||||
| 			(if (eof-object? c) | ||||
| 			    (let ((nread (- i start))) | ||||
| 			      (and (not (zero? nread)) nread)) | ||||
| 			    (begin (string-set! s i c) | ||||
| 				   (lp (+ i 1))))))))))) | ||||
| 
 | ||||
| (define (read-string len . maybe-fd/port)  | ||||
|   (let* ((s (make-string len)) | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 shivers
						shivers