Changeset 288

Show
Ignore:
Timestamp:
01/16/07 17:01:47 (2 years ago)
Author:
dconrad
Message:

Fix runtime Altivec detection

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/ColorConversions.c

    r286 r288  
    161161                size_t length = sizeof(vType); 
    162162                int error = sysctl(sels, 2, &vType, &length, NULL, 0); 
    163                 if( 0 == error ) y420_function = Y420_ppc_altivec; 
     163                if( 0 == error && vType ) y420_function = Y420_ppc_altivec; 
    164164                else  
    165165                y420_function = Y420_ppc_scalar;