File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ w_object(v, p)
121121 object * v ;
122122 WFILE * p ;
123123{
124- long i , n ;
124+ int i , n ;
125125
126126 if (v == NULL )
127127 w_byte (TYPE_NULL , p );
@@ -147,29 +147,29 @@ w_object(v, p)
147147 float_buf_repr (buf , (floatobject * )v );
148148 n = strlen (buf );
149149 w_byte (TYPE_FLOAT , p );
150- w_byte (( int ) n , p );
151- w_string (buf , ( int ) n , p );
150+ w_byte (n , p );
151+ w_string (buf , n , p );
152152 }
153153 else if (is_stringobject (v )) {
154154 w_byte (TYPE_STRING , p );
155155 n = getstringsize (v );
156- w_long (n , p );
157- w_string (getstringvalue (v ), ( int ) n , p );
156+ w_long (( long ) n , p );
157+ w_string (getstringvalue (v ), n , p );
158158 }
159159 else if (is_tupleobject (v )) {
160160 w_byte (TYPE_TUPLE , p );
161161 n = gettuplesize (v );
162- w_long (n , p );
162+ w_long (( long ) n , p );
163163 for (i = 0 ; i < n ; i ++ ) {
164- w_object (gettupleitem (v , ( int ) i ), p );
164+ w_object (gettupleitem (v , i ), p );
165165 }
166166 }
167167 else if (is_listobject (v )) {
168168 w_byte (TYPE_LIST , p );
169169 n = getlistsize (v );
170- w_long (n , p );
170+ w_long (( long ) n , p );
171171 for (i = 0 ; i < n ; i ++ ) {
172- w_object (getlistitem (v , ( int ) i ), p );
172+ w_object (getlistitem (v , i ), p );
173173 }
174174 }
175175 else if (is_dictobject (v )) {
You can’t perform that action at this time.
0 commit comments