Ignore:
Timestamp:
Mar 2, 2008, 1:58:48 AM (12 years ago)
Author:
Sam Hocevar
Message:
  • Fix argument types in lisp_cos(), lisp_sin() and lisp_atan() to avoid overflows. Closes #1 #2 #3.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/calctrig.cpp

    r2 r43  
    44{
    55  int i,x;
    6   printf("long sin_table[360]={\n  ");
     6  printf("int32_t sin_table[360]={\n  ");
    77  for (i=0;i<360;i++)
    88  {
     
    1313  printf("};\n");
    1414
    15   printf("unsigned short atan_table[1662]={\n  ");
     15  printf("uint16_t atan_table[1662]={\n  ");
    1616 
    1717  for (i=1;i<1662;i++)
Note: See TracChangeset for help on using the changeset viewer.