comparison src/alloc.c @ 8940:18b0314420d5

(make_float, make_pure_float): Fix Lisp_Object vs. int problems.
author Karl Heuer <kwzh@gnu.org>
date Tue, 20 Sep 1994 04:47:17 +0000
parents 48ff00bebef6
children 0e29f6a4fe7c
comparison
equal deleted inserted replaced
8939:706a926df1d5 8940:18b0314420d5
461 float_block_index = 0; 461 float_block_index = 0;
462 } 462 }
463 XSET (val, Lisp_Float, &float_block->floats[float_block_index++]); 463 XSET (val, Lisp_Float, &float_block->floats[float_block_index++]);
464 } 464 }
465 XFLOAT (val)->data = float_value; 465 XFLOAT (val)->data = float_value;
466 XFLOAT (val)->type = 0; /* bug chasing -wsr */ 466 XFASTINT (XFLOAT (val)->type) = 0; /* bug chasing -wsr */
467 consing_since_gc += sizeof (struct Lisp_Float); 467 consing_since_gc += sizeof (struct Lisp_Float);
468 return val; 468 return val;
469 } 469 }
470 470
471 #endif /* LISP_FLOAT_TYPE */ 471 #endif /* LISP_FLOAT_TYPE */
1076 if (pureptr + sizeof (struct Lisp_Float) > PURESIZE) 1076 if (pureptr + sizeof (struct Lisp_Float) > PURESIZE)
1077 error ("Pure Lisp storage exhausted"); 1077 error ("Pure Lisp storage exhausted");
1078 XSET (new, Lisp_Float, PUREBEG + pureptr); 1078 XSET (new, Lisp_Float, PUREBEG + pureptr);
1079 pureptr += sizeof (struct Lisp_Float); 1079 pureptr += sizeof (struct Lisp_Float);
1080 XFLOAT (new)->data = num; 1080 XFLOAT (new)->data = num;
1081 XFLOAT (new)->type = 0; /* bug chasing -wsr */ 1081 XFASTINT (XFLOAT (new)->type) = 0; /* bug chasing -wsr */
1082 return new; 1082 return new;
1083 } 1083 }
1084 1084
1085 #endif /* LISP_FLOAT_TYPE */ 1085 #endif /* LISP_FLOAT_TYPE */
1086 1086