lib/md5: do not import `print` in FFI
authorJean Privat <jean@pryen.org>
Wed, 8 Apr 2015 13:50:04 +0000 (20:50 +0700)
committerJean Privat <jean@pryen.org>
Fri, 10 Apr 2015 10:31:53 +0000 (17:31 +0700)
Signed-off-by: Jean Privat <jean@pryen.org>

lib/md5.nit

index f0b028e..85828aa 100644 (file)
@@ -492,7 +492,7 @@ in "C Header" `{
 redef class String
        # returns the md5 digest of the receiver string
        # algorithm implemented by L. Peter Deutsch <ghost@aladdin.com>
-       fun md5: String import String.to_cstring, NativeString.to_s, String.print `{
+       fun md5: String import String.to_cstring, NativeString.to_s `{
                md5_state_t state;
                md5_byte_t digest[16]; /* result */
                char *hex_output = malloc(33*sizeof(char));