Fix implicit float conversion in MemoryIdler
Summary:
After an innocent inclusion of "folly/futures/Future.h" in some cachelib code (D9372014), some gcc builds fail with:
folly/detail/MemoryIdler.h:88:30: error: conversion to 'float' alters 'long unsigned int' constant value [-Werror=float-conversion]
It seems like this has been worked-around previously by ignoring warnings in outer code such as here:
diffusion/FBS/browse/master/fbcode/cachelib/common/Utils.h$7-10
Reviewed By: yfeldblum
Differential Revision: D9381592
fbshipit-source-id: 00ec25600ae473baeee5caaef9989d66a9a64a59
Showing
Please register or sign in to comment