]> git.tdb.fi Git - libs/datafile.git/commitdiff
Accept int-to-float conversion in array signature
authorMikko Rasa <tdb@tdb.fi>
Fri, 19 Dec 2014 03:34:44 +0000 (05:34 +0200)
committerMikko Rasa <tdb@tdb.fi>
Fri, 19 Dec 2014 03:34:44 +0000 (05:34 +0200)
source/loader.cpp

index d987a9e92fd646ce8812f9b827028d508d0601f5..81370687ffd7e32f35a413359ac47d90d01c6c5a 100644 (file)
@@ -24,7 +24,7 @@ bool signature_match(const string &st_sig, const string &act_sig)
        else if(act_sig.size()==2 && act_sig[1]=='*')
        {
                for(string::const_iterator i=st_sig.begin(); i!=st_sig.end(); ++i)
-                       if(*i!=act_sig[0])
+                       if(!signature_match(*i, act_sig[0]))
                                return false;
 
                return true;