Revision: 49350
          http://brlcad.svn.sourceforge.net/brlcad/?rev=49350&view=rev
Author:   brlcad
Date:     2012-02-08 21:08:34 +0000 (Wed, 08 Feb 2012)
Log Message:
-----------
calculate the window size based on the data buffer instead of relying on them 
to sync.  remove dead code detected by cov cid 229.

Modified Paths:
--------------
    brlcad/trunk/src/sig/dfft.c

Modified: brlcad/trunk/src/sig/dfft.c
===================================================================
--- brlcad/trunk/src/sig/dfft.c 2012-02-08 20:58:37 UTC (rev 49349)
+++ brlcad/trunk/src/sig/dfft.c 2012-02-08 21:08:34 UTC (rev 49350)
@@ -71,7 +71,7 @@
 int main(int argc, char **argv)
 {
     int i, n, c;
-    int L = 1024;
+    int L = sizeof(data) / sizeof(*data);
 
     if (isatty(STDIN_FILENO) || isatty(STDOUT_FILENO)) {
        bu_exit(1, "%s", usage);
@@ -92,10 +92,6 @@
            default:  printf("Unknown argument: %c\n%s\n", c, usage); return 
EXIT_FAILURE;
        }
 
-    if (L > MAXFFT) {
-       bu_exit(2, "dfft: can't go over %d\n", MAXFFT);
-    }
-
     /* Calculate Critical Band filter weights */
     if (cflag) {
        cbweights(&cbfilter[0], L, 19);

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to