[Git][NTPsec/ntpsec][master] Fix minor test breakage from "Abolish some macros...".

Eric S. Raymond gitlab at mg.gitlab.com
Thu Jan 5 12:09:53 UTC 2017


Eric S. Raymond pushed to branch master at NTPsec / ntpsec


Commits:
901f5d0d by Eric S. Raymond at 2017-01-05T07:09:45-05:00
Fix minor test breakage from "Abolish some macros...".

- - - - -


1 changed file:

- tests/libntp/lfptest.h


Changes:

=====================================
tests/libntp/lfptest.h
=====================================
--- a/tests/libntp/lfptest.h
+++ b/tests/libntp/lfptest.h
@@ -4,7 +4,7 @@
 #include "ntp_fp.h"
 
 static bool IsEqual(const l_fp *expected, const l_fp *actual) {
-	if (expected == actual) {
+	if (*expected == *actual) {
 		return true;
 	} else {
 		printf("Expected: %s (%d.%d) but was: %s (%d.%d)\n", lfptoa(*expected, FRACTION_PREC), lfpuint(*expected), lfpfrac(*expected), lfptoa(*actual, FRACTION_PREC), lfpuint(*actual), lfpfrac(*actual));



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/901f5d0d05cbae40105b7b4b6ce5afb3cb0b0f46
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170105/92b766f0/attachment.html>


More information about the vc mailing list