]> iEval git - digest-highwayhash.git/commitdiff
Do not use "false" in C
authorMarius Gavrilescu <marius@ieval.ro>
Sat, 16 Jun 2018 21:04:53 +0000 (00:04 +0300)
committerMarius Gavrilescu <marius@ieval.ro>
Sat, 16 Jun 2018 21:04:53 +0000 (00:04 +0300)
HighwayHash.xs

index 376130028fa697f1bc240b528cea3c1027fe4ca5..d1cca3271507251079edaee9b1ee19eb47337cbd 100644 (file)
@@ -24,14 +24,14 @@ void process_key(pTHX_ AV *key_av, uint64_t *key) {
        }
 }
 
-uint64_t highway_hash64(AV *key_av, char *bytes, uint64_t size) {
+uint64_t highway_hash64(AV *key_av, unsigned char *bytes, uint64_t size) {
        dTHX;
        uint64_t key[4];
        process_key(aTHX_ key_av, key);
        return HighwayHash64(bytes, size, key);
 }
 
-AV* highway_hash128(AV *key_av, char *bytes, uint64_t size) {
+AV* highway_hash128(AV *key_av, unsigned char *bytes, uint64_t size) {
        dTHX;
        AV* result;
        uint64_t key[4];
@@ -44,7 +44,7 @@ AV* highway_hash128(AV *key_av, char *bytes, uint64_t size) {
        return result;
 }
 
-AV* highway_hash256(AV *key_av, char *bytes, uint64_t size) {
+AV* highway_hash256(AV *key_av, unsigned char *bytes, uint64_t size) {
        dTHX;
        AV* result;
        uint64_t key[4];
@@ -60,11 +60,12 @@ AV* highway_hash256(AV *key_av, char *bytes, uint64_t size) {
 }
 
 MODULE = Digest::HighwayHash           PACKAGE = Digest::HighwayHash
+PROTOTYPES: DISABLE
 BOOT:
      PERL_MATH_INT64_LOAD_OR_CROAK;
 
-uint64_t highway_hash64(AV *key_av, char *bytes, uint64_t length(bytes))
+uint64_t highway_hash64(AV *key_av, unsigned char *bytes, uint64_t length(bytes))
 
-AV* highway_hash128(AV *key_av, char *bytes, uint64_t length(bytes))
+AV* highway_hash128(AV *key_av, unsigned char *bytes, uint64_t length(bytes))
 
-AV* highway_hash256(AV *key_av, char *bytes, uint64_t length(bytes))
+AV* highway_hash256(AV *key_av, unsigned char *bytes, uint64_t length(bytes))
This page took 0.025455 seconds and 4 git commands to generate.