You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
1.0 KiB

  1. Description: fix execution on 64bit archs
  2. Bug: http://code.google.com/p/android/issues/detail?id=12224
  3. Author: Samuel Thibault <sthibault@debian.org>
  4. --- svox/pico/lib/picoapi.c.original 2010-10-25 19:06:57.000000000 +0200
  5. +++ svox/pico/lib/picoapi.c 2010-10-25 19:07:18.000000000 +0200
  6. @@ -90,7 +90,7 @@
  7. status = PICO_ERR_NULLPTR_ACCESS;
  8. } else {
  9. byte_ptr_t rest_mem;
  10. - picoos_uint32 rest_mem_size;
  11. + picoos_objsize_t rest_mem_size;
  12. pico_System sys;
  13. picoos_MemoryManager sysMM;
  14. picoos_ExceptionManager sysEM;
  15. --- svox/pico/lib/picosig2.c.original 2010-10-26 00:17:18.000000000 +0200
  16. +++ svox/pico/lib/picosig2.c 2010-10-26 00:17:19.000000000 +0200
  17. @@ -568,7 +568,7 @@
  18. for (nI = 1; nI < m1; nI++) {
  19. XXr[nI] = c1[nI] << shift;
  20. }
  21. - i = sizeof(picoos_int32) * (PICODSP_FFTSIZE + 1 - m1);
  22. + i = sizeof(picoos_int32) * (PICODSP_FFTSIZE - m1);
  23. picoos_mem_set(XXr + m1, 0, i);
  24. dfct_nmf(m4, XXr); /* DFCT directly in fixed point */