summary refs log tree commit diff
path: root/pkgs/applications/audio/chuck/clang.patch
blob: 77227ef0fd44a6c3936909bc25ed40b5f81fa3c7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
diff --git a/src/ugen_osc.cpp b/src/ugen_osc.cpp
index 6b93c6b..dbefe4f 100644
--- a/src/ugen_osc.cpp
+++ b/src/ugen_osc.cpp
@@ -1232,7 +1232,7 @@ CK_DLL_CTRL( gen5_coeffs )
     Chuck_Array8 * in_args = (Chuck_Array8 *)GET_CK_OBJECT(ARGS);
     
     // fprintf(stdout, "calling gen10coeffs, %d\n", weights);
-    if(in_args<0) return;
+    if(in_args!=0) return;
     size = in_args->size();
     if(size >= genX_MAX_COEFFS) size = genX_MAX_COEFFS - 1;
     
@@ -1287,7 +1287,7 @@ CK_DLL_CTRL( gen7_coeffs )
     Chuck_Array8 * in_args = (Chuck_Array8 *)GET_CK_OBJECT(ARGS);
     
     // fprintf(stdout, "calling gen10coeffs, %d\n", weights);
-    if(in_args<0) return;
+    if(in_args!=0) return;
     size = in_args->size();
     if(size >= genX_MAX_COEFFS) size = genX_MAX_COEFFS - 1;
     
@@ -1340,7 +1340,7 @@ CK_DLL_CTRL( gen9_coeffs )
     Chuck_Array8 * weights = (Chuck_Array8 *)GET_CK_OBJECT(ARGS);
     
     // fprintf(stdout, "calling gen10coeffs, %d\n", weights);
-    if(weights<0) return;
+    if(weights!=0) return;
     size = weights->size();
     if(size >= genX_MAX_COEFFS) size = genX_MAX_COEFFS - 1;
     
@@ -1390,7 +1390,7 @@ CK_DLL_CTRL( gen10_coeffs )
     Chuck_Array8 * weights = (Chuck_Array8 *)GET_CK_OBJECT(ARGS);
     
     // fprintf(stdout, "calling gen10coeffs, %d\n", weights);
-    if(weights<0) return;
+    if(weights!=0) return;
     size = weights->size();
     if(size >= genX_MAX_COEFFS) size = genX_MAX_COEFFS - 1;
     
@@ -1441,7 +1441,7 @@ CK_DLL_CTRL( gen17_coeffs )
     Chuck_Array8 * weights = (Chuck_Array8 *)GET_CK_OBJECT(ARGS);
     
     // fprintf(stdout, "calling gen17coeffs, %d\n", weights);
-    if(weights<0) return;
+    if(weights!=0) return;
     size = weights->size();
     if(size >= genX_MAX_COEFFS) size = genX_MAX_COEFFS - 1;
     
@@ -1502,7 +1502,7 @@ CK_DLL_CTRL( curve_coeffs )
     Chuck_Array8 * weights = (Chuck_Array8 *)GET_CK_OBJECT(ARGS);
     
     // fprintf(stdout, "calling gen17coeffs, %d\n", weights);
-    if(weights<0) goto done;
+    if(weights!=0) goto done;
 
     nargs = weights->size();
     if (nargs < 5 || (nargs % 3) != 2)  {   // check number of args