X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fvalue.c;h=180f1b6d1e064d8195fda7f033bf72ecb3cccfd6;hb=2c411d651e22704f60f117d944b9380a07d247fe;hp=baaaed48d4c396a94312917a1becc7b7bee9f7c2;hpb=62c871225e944dbdb2a50e1253423952719145cf;p=pspp-builds.git diff --git a/src/data/value.c b/src/data/value.c index baaaed48..180f1b6d 100644 --- a/src/data/value.c +++ b/src/data/value.c @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 1997-9, 2000 Free Software Foundation, Inc. + Copyright (C) 1997-9, 2000, 2009 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -65,9 +65,7 @@ hash_value_short (const void *v_, const void *var_) const union value *v = v_; const struct variable *var = var_; int width = var_get_width (var); - return (width == 0 - ? hsh_hash_double (v->f) - : hsh_hash_bytes (v->s, width)); + return width == 0 ? hash_double (v->f, 0) : hash_bytes (v->s, width, 0); }