patch 7.4.1979
Problem:    Getting value of binary option is wrong. (Kent Sibilev)
Solution:   Fix type cast.  Add a test.
diff --git a/src/option.c b/src/option.c
index 47bbe73..95f4c73 100644
--- a/src/option.c
+++ b/src/option.c
@@ -9102,7 +9102,7 @@
 	if ((int *)varp == &curbuf->b_changed)
 	    *numval = curbufIsChanged();
 	else
-	    *numval = (long) *(varnumber_T *)varp;
+	    *numval = (long) *(int *)varp;
     }
     return 1;
 }