[svn:parrot] r41782 - trunk/config/gen/crypto

darbelo at svn.parrot.org darbelo at svn.parrot.org
Sat Oct 10 00:46:15 UTC 2009


Author: darbelo
Date: Sat Oct 10 00:46:14 2009
New Revision: 41782
URL: https://trac.parrot.org/parrot/changeset/41782

Log:
Kill several unnecessary strstart uses with one stone.

Modified:
   trunk/config/gen/crypto/digest_pmc.in

Modified: trunk/config/gen/crypto/digest_pmc.in
==============================================================================
--- trunk/config/gen/crypto/digest_pmc.in	Sat Oct 10 00:25:53 2009	(r41781)
+++ trunk/config/gen/crypto/digest_pmc.in	Sat Oct 10 00:46:14 2009	(r41782)
@@ -113,7 +113,7 @@
     METHOD void Update(STRING *buf) {
 @TEMP_md_guard@
         @TEMP_md_ctx@ *c = PMC_data_typed(SELF, @TEMP_md_ctx@ *);
-        (void)@TEMP_md_name at _Update(c, (unsigned char *)buf->strstart, buf->bufused);
+        (void)@TEMP_md_name at _Update(c, Buffer_bufstart(buf), buf->bufused);
 #endif
     }
 


More information about the parrot-commits mailing list