{"push_id":843366037,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"8bbdf4307320f26189eeb258f7e4d31ce008e5e5","before":"6dedb873d397c224240376c0d818c57ab6ae95f9","commits":[{"sha":"8bbdf4307320f26189eeb258f7e4d31ce008e5e5","author":{"email":"625544ea4c9088945fa38ac61f1cba834b06f4bf@gmail.com","name":"Guy Thomas"},"message":"Update Main.ino\n\nWhat a coincidence! A pointer is 4 bytes and a float is 4 bytes. But alas, a double is 8 bytes.  So when I switched stuff to use double instead of floats I found a bug.\r\n\r\ndouble myArray[10];\r\nmyPointer pointyPointer = &myArray;\r\nsizeof(myArray) = 80;\r\nsizeof(pointyPointer) = 4;\r\nSo sizeof(pointyPointer)/sizeof(double) = 0 and averaging over 0 items is bad\r\nBut if myArray contains float then ( sizeof(pointyPointer)/sizeof(float) = 1\r\nand averaging over one item actually is not fatal.","distinct":true,"url":"https://api.github.com/repos/grtyvr/ESP8266-Setting-Circles/commits/8bbdf4307320f26189eeb258f7e4d31ce008e5e5"}]}