From 80a087e606d89b34e755edcfc9412c09e134ac2e Mon Sep 17 00:00:00 2001 From: William Woodall Date: Tue, 15 Oct 2013 11:48:00 -0700 Subject: [PATCH] use pass by reference in operator* for timespec --- src/impl/unix.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/impl/unix.cc b/src/impl/unix.cc index d2ff963..e6e76aa 100755 --- a/src/impl/unix.cc +++ b/src/impl/unix.cc @@ -126,7 +126,7 @@ operator- (const struct timespec &a, const struct timespec &b) * that the result is muliple seconds. Only makes sense when the timespec * argument is a duration. */ static inline timespec -operator* (const struct timespec &ts, const size_t mul) +operator* (const struct timespec &ts, const size_t &mul) { struct timespec result = { ts.tv_sec * mul,