From: Enji Cooper Date: Fri, 12 Jan 2018 18:49:13 +0000 (-0800) Subject: Spell uintptr_t properly in static_assert in `getStackTrace()` X-Git-Tag: v2018.01.15.00~10 X-Git-Url: http://plrg.eecs.uci.edu/git/?p=folly.git;a=commitdiff_plain;h=c7801abd7f880247abf733c8aac0a7a488df5a48 Spell uintptr_t properly in static_assert in `getStackTrace()` Summary: While here, pet the linter with respect to the warning around the indentation with the comment containing the licensing tort. Signed-off-by: Enji Cooper Reviewed By: yfeldblum Differential Revision: D6710314 fbshipit-source-id: fc0b971e6300af9c63a690c54c08fc70e0313b70 --- diff --git a/folly/experimental/symbolizer/StackTrace.cpp b/folly/experimental/symbolizer/StackTrace.cpp index c58af4a7..efcaec99 100644 --- a/folly/experimental/symbolizer/StackTrace.cpp +++ b/folly/experimental/symbolizer/StackTrace.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2017 Facebook, Inc. + * Copyright 2017-present Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - #include // Must be first to ensure that UNW_LOCAL_ONLY is defined @@ -25,7 +24,7 @@ namespace symbolizer { ssize_t getStackTrace(uintptr_t* addresses, size_t maxAddresses) { static_assert( - sizeof(uintptr_t) == sizeof(void*), "uinptr_t / pointer size mismatch"); + sizeof(uintptr_t) == sizeof(void*), "uintptr_t / pointer size mismatch"); // The libunwind documentation says that unw_backtrace is async-signal-safe // but, as of libunwind 1.0.1, it isn't (tdep_trace allocates memory on // x86_64)