OpenSDE Packages Database (without history before r20070)
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.

29 lines
1.5 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../rezound/float.patch
  5. # Copyright (C) 2006 The T2 SDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. do not throw because of floating point representation
  17. --- rezound-0.12.2beta/src/backend/settings.cpp_orig 2006-03-06 11:49:50.130992750 +0100
  18. +++ rezound-0.12.2beta/src/backend/settings.cpp 2006-03-06 15:42:48.244570250 +0100
  19. @@ -222,7 +222,7 @@
  20. GET_SETTING("DesiredOutputBufferCount",gDesiredOutputBufferCount,int)
  21. gDesiredOutputBufferCount=max(2,gDesiredOutputBufferCount);
  22. GET_SETTING("DesiredOutputBufferSize",gDesiredOutputBufferSize,unsigned)
  23. - if(gDesiredOutputBufferSize<256 || log((double)gDesiredOutputBufferSize)/log(2.0)!=floor(log((double)gDesiredOutputBufferSize)/log(2.0)))
  24. + if(gDesiredOutputBufferSize<256 || (gDesiredOutputBufferSize & gDesiredOutputBufferSize-1))
  25. throw runtime_error(string(__func__)+" -- DesiredOutputBufferSize in "+gSettingsRegistry->getFilename()+" must be a power of 2 and >= than 256");