IntVal vs. MKFD confusion
authorClaus Gittinger <cg@exept.de>
Thu, 02 Nov 1995 16:16:42 +0100
changeset 106 acc6b4552eae
parent 105 07801b47faf9
child 107 15a7304a48c7
IntVal vs. MKFD confusion
Socket.st
--- a/Socket.st	Thu Nov 02 13:00:07 1995 +0100
+++ b/Socket.st	Thu Nov 02 16:16:42 1995 +0100
@@ -22,7 +22,7 @@
 COPYRIGHT (c) 1992 by Claus Gittinger
 	      All Rights Reserved
 
-$Header: /cvs/stx/stx/libbasic2/Socket.st,v 1.34 1995-11-02 11:19:22 cg Exp $
+$Header: /cvs/stx/stx/libbasic2/Socket.st,v 1.35 1995-11-02 15:16:42 cg Exp $
 '!
 
 !Socket class methodsFor:'documentation'!
@@ -43,7 +43,7 @@
 
 version
 "
-$Header: /cvs/stx/stx/libbasic2/Socket.st,v 1.34 1995-11-02 11:19:22 cg Exp $
+$Header: /cvs/stx/stx/libbasic2/Socket.st,v 1.35 1995-11-02 15:16:42 cg Exp $
 "
 !
 
@@ -1901,7 +1901,7 @@
     int flags = 0;
 
     if (fp != nil) {
-	sock = fileno((FILE *)(_intVal(fp)));
+	sock = fileno(MKFD(fp));
 
 	oClass = __Class(aDataBuffer);
 	switch (_intVal(_ClassInstPtr(oClass)->c_flags) & ARRAYMASK) {
@@ -2051,7 +2051,7 @@
     if ((fp != nil) 
      && __isSmallInteger(startIndex)
      && __isSmallInteger(count)) {
-	sock = fileno((FILE *)(_intVal(fp)));
+	sock = fileno(MKFD(fp));
 
 	if (addrBytes != nil) {
 	    if (! __isByteArray(addrBytes)) goto bad;