GitHub PushEvent at 2014-03-15 21:35:01
Repository: DDMathParser
Actor: zorgiepoo
Payload: {"shas":[["924999cf49f5545884b42bd37d4e31e866cce9c8","0d2ad7f0251699e899089bdeb00b02456231001d@gmail.com","Fixed median not taking correct average for even # of arguments\nAlso, ceil and floor are not necessary. Found this code thanks to -Wconversion","Zorg",true],["89892277fbb5624d86cba008725068cea9c29373","0d2ad7f0251699e899089bdeb00b02456231001d@gmail.com","Fixing random function.\narc4random_uniform takes and outputs an unsigned 32-bit integer, therefore we shouldn't rely on using long long. It was possible to choose a big value for lower bound and have random hang infinitely.\n\nAdditionally, error checking should be done to satisfy if upperBound >= lowerBound (I did it inclusively).\n\nLastly, a loop is not necessary to use to keep the output in a certain range; just take advantage of the upper bound argument of arc4random_uniform. Found bug thanks to Wsign-conversion","Zorg",true]],"size":2,"ref":"refs/heads/warnings","head":"89892277fbb5624d86cba008725068cea9c29373"}