message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
roller: fix response parsing from gasoracle | (mul 1.000.000.000 u.res) ::NOTE gwei to wei
%. u.jon
=, dejs-soft:format
- (ot 'result'^(ot 'FastGasPrice'^ni ~) ~)
+ (ot 'result'^(ot 'FastGasPrice'^(su dem) ~) ~)
::
++ send-batch
|= [endpoint=@ta batch=@ux]
|
Change shift draw line, allow click -> hold shift -> click for line
Was Hold Shift -> click (keep holding) -> click for line | @@ -36,12 +36,7 @@ class SceneCursor extends Component {
return;
}
if(e.shiftKey) {
- if (this.drawLine === true) {
- return;
- }
this.drawLine = true;
- this.startX = undefined;
- this.startY = undefined;
}
if (e.ctrlKey || e.shiftKey || e.metaKey) {
return;
|
system/termcurses/tcurses_vt100.c: Costmetic vertical alignment. | @@ -868,6 +868,7 @@ static int tcurses_vt100_getkeycode(FAR struct termcurses_s *dev, FAR int *speci
ctrl_seq = false;
buildkey[0] = ch;
keybuildcount = 1;
+
if (x + 1 != priv->keycount)
{
continue;
|
[hardware] Raise flag when SC succeded | @@ -63,8 +63,8 @@ module tcdm_adapter #(
logic meta_valid, meta_ready;
logic rdata_valid, rdata_ready;
- /// read signal before storage
- logic [DataWidth-1:0] rdata_o;
+ /// read signal before register
+ logic [DataWidth-1:0] out_rdata;
logic out_gnt;
logic pop_resp;
@@ -122,10 +122,10 @@ module tcdm_adapter #(
.rst_n... |
[arch][arm64] Parse BRK exception
When a crash is because of a BRK instruction, print that instead of
the default "unhandled synchronous exception". | @@ -204,6 +204,11 @@ void arm64_sync_exception(struct arm64_iframe_long *iframe) {
print_fault_msg(BITS(iss, 5, 0));
break;
}
+ case 0b111100: {
+ printf("BRK #0x%04lx instruction: PC at 0x%llx(0x%lx)\n",
+ BITS_SHIFT(iss, 15, 0), iframe->elr, display_pc);
+ break;
+ }
default:
printf("unhandled synchronous exception\n... |
Tweak lib/dumbindent's comments | //
// In particular, the algorithm does not solve C++'s "most vexing parse" or
// otherwise determine whether "x*y" is a multiplication or a type definition
-// (where y is a pointer-to-x typed variable, such as "int*p"). For a type
-// definition, where other formatting algorithms would re-write around the "*"
-// as ... |
latest weak candidate is not hex | @@ -1966,8 +1966,8 @@ static char *zhone = "Zhone-";
if(essidlen < 6) return;
if(memcmp(essid, zhone, 6) == 0) return;
-for(k = 0; k < 0x10000000; k++) fprintf(fhout, "znid30%07d\n", k);
-for(k = 0; k < 0x10000000; k++) fprintf(fhout, "znid31%07d\n", k);
+for(k = 0; k < 10000000; k++) fprintf(fhout, "znid30%07d\n", k);... |
Fix missing check for OpenSSL 1.0.x in smessage.cpp | @@ -3233,8 +3233,13 @@ int SecureMsgSetHash(unsigned char *pHeader, unsigned char *pPayload, uint32_t n
//vchHash.resize(32);
bool found = false;
+ #if OPENSSL_VERSION_NUMBER < 0x10100000L
+ HMAC_CTX ctx;
+ HMAC_CTX_init(&ctx);
+ #else
HMAC_CTX *ctx;
ctx = HMAC_CTX_new();
+ #endif
uint32_t nonse = 0;
@@ -3255,12 +3260,... |
FormikOnBlur: debounce submissions | import { FormikConfig, FormikProvider, FormikValues, useFormik } from 'formik';
-import React, { useEffect, useImperativeHandle, useState } from 'react';
+import React, { useEffect, useImperativeHandle, useCallback } from 'react';
export function FormikOnBlur<
Values extends FormikValues = FormikValues,
ExtraProps = {}... |
Separate Titan and Pallene copyrights in LICENSE | MIT License
-Copyright (c) 2018, The Titan Project Developers, The Pallene Developers
+Copyright (c) 2019, The Pallene Developers
+Copyright (c) 2018, The Titan Project Developers
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Softw... |
opal-ci: Use ubuntu:rolling for Ubuntu latest image
This updates the Ubuntu 'latest' to use ubuntu:rolling, which is
the most recent release. It turns out that ubuntu:latest is actually the
latest LTS (18.04). | -FROM ubuntu:latest
+FROM ubuntu:rolling
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update -qq
RUN if [ `arch` != "ppc64le" ]; then apt-get update -qq && apt-get install -y gcc-powerpc64le-linux-gnu; fi
|
Increase BUFFERSIZE for and use same value for POWER6
to fix overflow warning for PWR8 ZGEMM and PWR9 C/ZGEMM and avoid size mismatches in DYNAMIC_ARCH | @@ -844,8 +844,8 @@ Lmcount$lazy_ptr:
#define BUFFER_SIZE ( 2 << 20)
#elif defined(PPC440FP2)
#define BUFFER_SIZE ( 16 << 20)
-#elif defined(POWER8) || defined(POWER9) || defined(POWER10)
-#define BUFFER_SIZE ( 64 << 20)
+#elif defined(POWER6) || defined(POWER8) || defined(POWER9) || defined(POWER10)
+#define BUFFER_SI... |
util_PinThreadToCPUs implementation for solaris based systems. | #if defined(__FreeBSD__)
#include <sys/procctl.h>
#endif /* defined(__FreeBSD__) */
+#if defined(__sun)
+#include <sys/pset.h>
+#endif /* defined(__sun) */
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/types.h>
@@ -140,6 +143,33 @@ bool util_PinThreadToCPUs(uint32_t threadno, uint32_t cpucnt) {
return false... |
Link to v2.9.2 milestone page, update stable date | @@ -20,11 +20,11 @@ The Phoscon App is a browser based web application and supports lights, sensors
deCONZ is having a beta release at the 15th day of the month in which the beta of last month becomes stable. Pull requests done before the 10th of the month, are getting included in the next beta (if there are no issues ... |
Resolve Cypress MTB BLE_SUPPORTED redefined warning. | @@ -17,7 +17,8 @@ endif
# Configuration specific to BLE
ifeq ($(BLE_SUPPORT),1)
-DEFINES+=BLE_SUPPORTED
+# BLE_SUPPORTED is defined in iot_config.h, comment this out to silence the "BLE_SUPPORTED" redefined warning.
+# DEFINES+=BLE_SUPPORTED
COMPONENTS+=WICED_BLE
endif
|
4way: fix ifdef | extern SoftSerialData_t escSerial[4];
static uint8_t suart_getc_(uint8_t *bt) {
-#if F0
+#ifdef F0
return softserial_read_byte_ex(&escSerial[selected_esc], bt);
#else
uint32_t btime;
@@ -106,7 +106,7 @@ static uint8_t suart_getc_(uint8_t *bt) {
}
static void suart_putc_(uint8_t *tx_b) {
-#if F0
+#ifdef F0
softserial_wr... |
Introduce flags for stripe count and stripe size to dstripe
Default to 1MB for stripe size and -1 for stripe count in
dstripe. Provide flags that accept arguments if the user
wants something other than the defaults. | static void print_usage(void)
{
printf("\n");
- printf("Usage: dstripe [options] <stripes> <stripesize> <input> <output>...\n");
+ printf("Usage: dstripe [options] <input> <output>...\n");
printf("\n");
printf("Options:\n");
+ printf(" -c, --count - stripe count (default -1)\n");
+ printf(" -s, --size - stripe size in ... |
Fix issue with Travis CI | @@ -41,6 +41,7 @@ matrix:
before_script: ./bootstrap.sh
script: |
+ rvm get head # Workaround for Travis CI issue https://github.com/travis-ci/travis-ci/issues/6307
set -e
unset CC # A pre-set CC overrides --host settings.
./configure $CONFIGFLAGS
|
Fix docs of functions potentially returning nullPtr
There is no *NULL* in Haskell, only `nullPtr`. | @@ -1233,7 +1233,7 @@ toboolean :: StackIndex -> Lua Bool
toboolean n = liftLua $ \l -> (/= 0) <$> lua_toboolean l n
-- | Converts a value at the given index to a C function. That value must be a C
--- function; otherwise, returns NULL.
+-- function; otherwise, returns @nullPtr@.
--
-- See also:
-- <https://www.lua.org... |
Suppress "old style definition" warning | @@ -1263,7 +1263,7 @@ static VALUE parser_new(int argc, VALUE *argv, VALUE self) {
// from this function. A delegate must be added before the parser can be
// used. Optionally oj_parser_set_options can be called if the options are not
// set directly.
-VALUE oj_parser_new() {
+VALUE oj_parser_new(void) {
ojParser p = A... |
Update session shadow error message | @@ -108,9 +108,13 @@ VOID PhShowSessionShadowDialog(
_In_ ULONG SessionId
)
{
- if (SessionId == NtCurrentPeb()->SessionId)
+ ULONG sessionId = ULONG_MAX;
+
+ PhGetProcessSessionId(NtCurrentProcess(), &sessionId);
+
+ if (SessionId == sessionId)
{
- PhShowError(ParentWindowHandle, L"You cannot remote control the curren... |
Fix slow send rate calculations
The send rate variable is only used when calculating sleep times for
"slow" rates. It was not correctly accounting for multiple probes.
Adding this in fixes the percent calculation. | @@ -249,7 +249,7 @@ int send_run(sock_t st, shard_t *s)
int interval = 0;
volatile int vi;
struct timespec ts, rem;
- double send_rate = (double)zconf.rate / ((double)zconf.senders * zconf.batch);
+ double send_rate = (double)zconf.rate / ((double)zconf.senders * zconf.batch * zconf.packet_streams);
const double slow_r... |
Add list crashing test
Fixed by the previous commit. | @@ -25,6 +25,10 @@ Y_UNIT_TEST_SUITE(Demangle) {
Check("_ZNKSt3__110__function6__funcIZN4DLCL8DLFutureIP15AnalysenManagerE3setINS_8functionIFS5_vEEEJEEEvT_DpOT0_EUlvE_NS_9allocatorISF_EEFvvEE7__cloneEv", "std::__1::__function::__func<void DLCL::DLFuture<AnalysenManager*>::set<std::__1::function<AnalysenManager* ()> >(s... |
Bump yp-util version
Note: mandatory check (NEED_CHECK) was skipped | },
"yp-util": {
"formula": {
- "sandbox_id": [310781867],
+ "sandbox_id": [313100724],
"match": "yp_cli"
},
"executable": {
|
chip/ish/uart_defs.h: Format with clang-format
BRANCH=none
TEST=none | #define IIR_TIME_OUT (0x0C) /* Prio: 2 */
#define IIR_SOURCE (0x0F)
-
/*
* FCR: FIFO Control register (FIFO_MODE != NONE)
*/
#define LSR_PE BIT(2) /* Parity error */
#define LSR_FE BIT(3) /* Framing error */
#define LSR_BI BIT(4) /* Breaking interrupt */
-#define LSR_THR_EMPTY BIT(5) /* Non FIFO mode: Transmit holding
... |
Coding: Add CMake style guidelines | @@ -144,6 +144,30 @@ So do not give this responsibility out of hands entirely.
**Example:** [src/bindings/cpp/include/kdb.hpp](/src/bindings/cpp/include/kdb.hpp)
+### CMake Guidelines
+
+We use a similar style for CMake as we do for other code:
+
+- The length of a functions should not exceed 100 lines.
+- The length o... |
story: rip out parsers | ++ mime :: retrieve form %mime
|= [p=mite q=octs]
^- story
- =/ commit-parser
- ;~ sfix :: throw away the trailing newline
- ;~ pfix (jest 'commit: ') :: throw away leading literal 'commit'
- (cook @uv ;~(pfix (jest '0v') viz:ag)) :: parse a @uv
- ==
- ::
- (just '\0a') :: parse trailing newline
- ==
- ::
- :: XX TODO:... |
build: fixing trivial typo in global header ('hieght' vs 'height') | @@ -1761,10 +1761,10 @@ int SPWATERFALL(_set_rate)(SPWATERFALL() _q, \
/* This is for display purposes only when generating the output image. */ \
/* _q : spectral periodogram waterfall object */ \
/* _width : image width [pixels] */ \
-/* _hieght : image hieght [pixels] */ \
+/* _height : image height [pixels] */ \
in... |
Fix "pointer target lost const qualifier" warning in vm_actor_set_spritesheet_by_ref | @@ -366,7 +366,7 @@ void vm_actor_set_spritesheet_by_ref(SCRIPT_CTX * THIS, INT16 idxA, INT16 idxB)
gbs_farptr_t * params = VM_REF_TO_PTR(idxB);
UBYTE spritesheet_bank = params->BANK;
- spritesheet_t *spritesheet = params->DATA;
+ const spritesheet_t *spritesheet = params->DATA;
load_sprite(actor->base_tile, spriteshee... |
Add CMAKE_DL_LIBS libaries to celix_pswp_common_tests | add_executable(celix_pswp_common_tests src/PS_WP_common_tests.cc)
target_include_directories(celix_pswp_common_tests PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../src)
-target_link_libraries(celix_pswp_common_tests PRIVATE celix_pubsub_protocol_lib GTest::gtest Celix::pubsub_spi GTest::gtest_main)
+target_link_libraries(celix... |
Minor README tweak
[ci skip] | @@ -151,8 +151,9 @@ simulator and flags an error if there is a mismatch.
threads. Thus, the random test generator reserves a separate write region for
each thread.
- The random instruction generator does not generate floating point
- instructions. There are still a fair number of subtle rounding bugs in the
- floating ... |
Document necessary error code processing | @@ -469,6 +469,18 @@ Remove your usage of the low level APIs. In this case you will need to rewrite y
=back
+=head3 Error code changes
+
+As OpenSSL 3.0 provides a brand new Encoder/Decoder mechanism for working with
+widely used file formats, application code that checks for particular error
+reason codes on key loadi... |
options/linux: add memfd_create to mman.h | #include <bits/off_t.h>
#include <bits/size_t.h>
+#ifdef __MLIBC_LINUX_OPTION
+#include <linux/memfd.h>
+#endif
+
#define MAP_FAILED ((void *)(-1))
#define MAP_FILE 0
@@ -51,6 +55,10 @@ int shm_unlink(const char *);
void *mremap(void *, size_t, size_t, int, ...);
int remap_file_pages(void *, size_t, int, size_t, int);
... |
HLS: Adding pragmas to optimize some cycles. | @@ -100,7 +100,9 @@ static void write_results_in_HJ_regs(action_output_reg *Action_Output,
*/
static void copy_hashkey(snap_membus_t mem, hashkey_t key)
{
+ loop_copy_hashkey:
for (unsigned int k = 0; k < sizeof(hashkey_t); k++)
+#pragma UNROLL
key[k] = mem(8 * (k+1) - 1, 8 * k);
}
@@ -108,7 +110,9 @@ static snap_membu... |
Add extra data seek before data fill in mio | /*
- * Copyright(c) 2012-2021 Intel Corporation
+ * Copyright(c) 2012-2022 Intel Corporation
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "metadata.h"
@@ -229,6 +229,8 @@ static int metadata_io_do(struct ocf_request *req)
struct ocf_io *io;
int ret;
+ ctx_data_seek(cache->owner, m_req->data, ctx_data_seek_begin,... |
session server BUGFIX context unlock on error | @@ -3337,7 +3337,8 @@ nc_connect_ch_endpt(struct nc_ch_endpt *endpt, nc_server_ch_session_acquire_ctx_
ERRMEM;
close(sock);
free(ip_host);
- return NC_MSG_ERROR;
+ msgtype = NC_MSG_ERROR;
+ goto fail;
}
(*session)->status = NC_STATUS_STARTING;
(*session)->ctx = (struct ly_ctx *)ctx;
|
Fix janet_table_remove returning the key instead of the value | @@ -173,7 +173,7 @@ Janet janet_table_rawget(JanetTable *t, Janet key) {
Janet janet_table_remove(JanetTable *t, Janet key) {
JanetKV *bucket = janet_table_find(t, key);
if (NULL != bucket && !janet_checktype(bucket->key, JANET_NIL)) {
- Janet ret = bucket->key;
+ Janet ret = bucket->value;
t->count--;
t->deleted++;
bu... |
flip default to clang and deal with platformToolset better. | -- Note: this function is already patched in by vs2012...
premake.override(vc2010, "platformToolset", function(oldfn, cfg)
- if cfg.system == premake.ANDROID then
+ if cfg.system ~= premake.ANDROID then
+ return oldfn(cfg)
+ end
+
if _ACTION >= "vs2015" then
- if cfg.toolchainversion ~= nil then
- _p(2,'<PlatformToolse... |
graphics/littlevgl/Makefile: update lvgl.h dependency to fix parallel build break
Parallel build imxrt1060-evk:lvgl with the below error:
make[3]: *** No rule to make target 'lvgl/lvgl.h', needed by '/home/jenkins/jenkins-slave/
workspace/NuttX-Nightly-Build/apps/include/graphics/lvgl.h'. | @@ -82,7 +82,9 @@ $(LVGL_UNPACKNAME)/.patched: $(LVGL_UNPACKNAME) $(PATCH_FILES)
$(Q) cat $(PATCH_FILES) | $(PATCH)
$(Q) touch $(LVGL_UNPACKNAME)/.patched
-$(APPDIR)/include/graphics/lvgl.h: $(LVGL_UNPACKNAME) $(LVGL_UNPACKNAME)/.patched lvgl/lvgl.h
+lvgl/lvgl.h: $(LVGL_UNPACKNAME)
+
+$(APPDIR)/include/graphics/lvgl.h:... |
Added support for openSUSE | @@ -35,6 +35,7 @@ OS_ID ?= $(shell grep '^ID=' /etc/os-release | cut -f2- -d= | sed -e 's/\"//g')
# Package dependencies
DOC_DEB_DEPENDS = doxygen graphviz python-pyparsing python-jinja2
DOC_RPM_DEPENDS = doxygen graphviz pyparsing python-jinja2
+DOC_SUSE_RPM_DEPENDS = doxygen graphviz python-pyparsing python-Jinja2
DO... |
Update gcc cap to 9
This is a quick fix for issues with Ubuntu 20.04. I am not sure yet if this
check is still needed. | @@ -73,7 +73,7 @@ if [ "$1" == "install" ] ; then
$SUDO rm $INSTALL_OPENMP/testfile
fi
-GCCMIN=8
+GCCMIN=9
if [ "$AOMP_BUILD_CUDA" == 1 ] ; then
if [ -f $CUDABIN/nvcc ] ; then
CUDAVER=`$CUDABIN/nvcc --version | grep compilation | cut -d" " -f5 | cut -d"." -f1 `
@@ -84,14 +84,14 @@ if [ "$AOMP_BUILD_CUDA" == 1 ] ; then
... |
subproc: more LOG_D | @@ -265,6 +265,8 @@ static bool subproc_New(run_t* run) {
run->persistentSock = sv[0];
}
+ LOG_D("Forking new process for thread: %" PRId32, run->fuzzNo);
+
run->pid = arch_fork(run);
if (run->pid == -1) {
PLOG_E("Couldn't fork");
@@ -307,14 +309,15 @@ static bool subproc_New(run_t* run) {
}
/* Parent */
- LOG_D("Launc... |
sort -f on passing_tests | @@ -36,7 +36,7 @@ echo $aompdir
echo
set -x
-sort $aompdir/test/smoke/passing-tests.txt > $$ptests
+sort -f $aompdir/test/smoke/passing-tests.txt > $$ptests
cat $aompdir/bin/epsdb/epsdb_passes.txt
cat $$ptests
set +x
|
When available (i.e. using vulkan), check vendor/device id and skip device if no match | @@ -629,17 +629,26 @@ void init_gpu_stats(uint32_t& vendorID, uint32_t reported_deviceID, overlay_para
for (auto& dir : dirs) {
path = drm + dir;
- SPDLOG_DEBUG("amdgpu path check: {}/device/vendor", path);
+ SPDLOG_DEBUG("amdgpu path check: {}", path);
+ if (pci_bus_parsed && pci_dev) {
+ string pci_device = read_syml... |
fix test exit code for fftw ohpc_test wrapper | @@ -39,7 +39,7 @@ for compiler in $COMPILER_FAMILIES ; do
./configure || exit 1
make clean || exit 1
- make -k check || status=0
+ make -k check || status=1
save_logs_mpi_family tests $compiler $mpi
save_logs_mpi_family tests/ohpc_module $compiler $mpi
|
Make functional load from file in nodejs. | const trampoline = require('./trampoline.node');
-var Module = require('module');
-var path = require('path');
+const Module = require('module');
+const path = require('path');
function node_loader_trampoline_execution_path() {
// TODO
@@ -13,10 +13,10 @@ function node_loader_trampoline_load_from_file(paths) {
const ha... |
Implement codegen for actorSetPositionToVariables | @@ -1697,6 +1697,28 @@ class ScriptBuilder {
this._addNL();
};
+ actorSetPositionToVariables = (variableX: string, variableY: string) => {
+ const stackPtr = this.stackPtr;
+ this._addComment("Actor Set Position To Variables");
+
+ this._rpn() //
+ .refVariable(variableX)
+ .int16(8 * 16)
+ .operator(".MUL")
+ .refVari... |
Use unicast Hellos for reachability on wired links. | @@ -256,15 +256,32 @@ check_neighbours()
return msecs;
}
+/* To lose one hello is a misfortune, to lose two is carelessness. */
+static int
+two_three(int reach)
+{
+ if((reach & 0xC000) == 0xC000)
+ return 1;
+ else if((reach & 0xC000) == 0)
+ return 0;
+ else if((reach & 0x2000))
+ return 1;
+ else
+ return 0;
+}
+
u... |
has been revoked | @@ -246,9 +246,7 @@ get_builtin_ds(void)
return
/* The anchors must start on a new line with ". IN DS and end with \n"[;]
* because the makedist script greps on the source here */
-/* anchor 19036 is from 2010 */
/* anchor 20326 is from 2017 */
-". IN DS 19036 8 2 49AAC11D7B6F6446702E54A1607371607A1A41855200FD2CE1CDDE3... |
metadata: Put io before callback invocation
This allows for safe volume destruction in callback function. | @@ -168,12 +168,12 @@ static void ocf_metadata_read_sb_complete(struct ocf_io *io, int error)
sizeof(context->superblock));
}
+ ctx_data_free(context->ctx, data);
+ ocf_io_put(io);
context->error = error;
context->cmpl(context);
- ctx_data_free(context->ctx, data);
- ocf_io_put(io);
env_free(context);
}
|
Testing: check encoded values | #include "eccodes.h"
#define NUM_THREADS 4
+/* Return 0 if numbers considered equal, otherwise 1 */
+static int compare_doubles(double a,double b,double tolerance)
+{
+ int ret=0;
+ double d=fabs(a-b);
+ if (d > tolerance) {
+ ret=1;
+ }
+ return ret;
+}
+
static void* process_grib(void* threadID)
{
const long tid = (l... |
testcase/libc_math: Add gamma and lgamma testcase
gamma(d) returns (d-1)! and lgamma(d) returns the log of |gamma(d)| | @@ -3395,6 +3395,59 @@ static void tc_libc_math_ynf(void)
TC_SUCCESS_RESULT();
}
+/**
+ * @fn :tc_libc_math_gamma
+ * @brief :gamma(d) function returns (d-1)!
+ * @Scenario :put a value and check the return
+ * API's covered :gamma
+ * Preconditions :None
+ * Postconditions :None
+ * @return :void
+ */
+static void tc_... |
Suppress empty file warning in msvc | @@ -173,7 +173,7 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${QUIC_OUTPUT_DIR})
set(QUIC_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src/inc)
if (WIN32)
- set(QUIC_WARNING_FLAGS /WX /W4 /sdl CACHE INTERNAL "")
+ set(QUIC_WARNING_FLAGS /WX /W4 /sdl /wd4206 CACHE INTERNAL "")
set(QUIC_COMMON_FLAGS "")
include(CheckCCompiler... |
in_tail: support rename detection on OSX | @@ -753,16 +753,21 @@ char *flb_tail_file_name(struct flb_tail_file *file)
ssize_t s;
char tmp[128];
char *buf;
+#ifdef __APPLE__
+ char path[PATH_MAX];
+#endif
- ret = snprintf(tmp, sizeof(tmp) - 1, "/proc/%i/fd/%i", getpid(), file->fd);
- if (ret == -1) {
+ buf = flb_malloc(PATH_MAX);
+ if (!buf) {
flb_errno();
retur... |
STATS fix memory leak in stat_client.c
continue statement in case bypasses cleaning up of unserialized
node | @@ -259,6 +259,9 @@ stat_poll_loop (stat_client_main_t * sm)
switch (n->type)
{
default:
+ vec_free (n->name);
+ vec_free (n->next_nodes);
+ vec_free (n);
continue;
case VLIB_NODE_TYPE_INTERNAL:
|
adding pseudo centre fire | @@ -30,6 +30,7 @@ concept datasetForLocal(unknown) {
"s2s" = {productionStatusOfProcessedData=7;}
"hydro" = {marsClass="ce";} # EFAS/GLOFAS
"hydro" = {marsClass="ul";} #ULYSSES
+ "fire" = {marsClass="gw";} # Global Wildfire awareness system
"uerra" = {productionStatusOfProcessedData=8;} # UERRA
"uerra" = {productionSta... |
weaken assertion, | @@ -54,7 +54,7 @@ static void* mi_heap_malloc_zero_aligned_at(mi_heap_t* const heap, const size_t
// .. and align within the allocation
uintptr_t adjust = alignment - (((uintptr_t)p + offset) & align_mask);
- mi_assert_internal(adjust % sizeof(uintptr_t) == 0);
+ mi_assert_internal(adjust >= alignment);
void* aligned_p... |
Fix CRLF snip in s2n_stuffer_read_line | @@ -72,7 +72,7 @@ int s2n_stuffer_read_line(struct s2n_stuffer *stuffer, struct s2n_stuffer *token
GUARD(s2n_stuffer_read_token(stuffer, token, '\n'));
/* Snip off the carriage return if it's present */
- if ((s2n_stuffer_data_available(token) > 0) && (token->blob.data[token->write_cursor] == '\r')) {
+ if ((s2n_stuffe... |
Ensure bm percentile_always and percentile_hit are initialized | @@ -802,6 +802,11 @@ static void construct_block_size_descriptor_2d(
bsd.block_modes[packed_idx].percentile_hit = true;
bsd.decimation_modes[decimation_mode].percentile_hit = true;
}
+ else
+ {
+ bsd.block_modes[packed_idx].percentile_always = false;
+ bsd.block_modes[packed_idx].percentile_hit = false;
+ }
#endif
bsd.... |
Add oculus_touch to action manifest; | ],
"default_bindings" : [
{ "binding_url" : "bindings_vive.json", "controller_type" : "vive_controller" },
- { "binding_url" : "bindings_knuckles.json", "controller_type" : "knuckles" }
+ { "binding_url" : "bindings_knuckles.json", "controller_type" : "knuckles" },
+ { "binding_url" : "bindings_touch.json", "controller... |
doc: adjust known issues pattern
Changes to the nested unnamed unions in type definitions require a tweak
to the pattern matching used to detect known issues reported by the API
doc generation. | #
#
^(?P<filename>[-._/\w]+/api/hypercall_api.rst):(?P<lineno>[0-9]+): WARNING: Invalid definition: Expected identifier in nested name. \[error at [0-9]+]
-^.*union vhm_request::\@0 vhm_request::\@1
-^[- \t]*\^
-^(?P=filename):(?P=lineno): WARNING: Invalid definition: Expected identifier in nested name. \[error at [0-9... |
oc_tls:fix race between DTLS close and init logic | @@ -248,6 +248,35 @@ is_peer_active(oc_tls_peer_t *peer)
static oc_event_callback_retval_t oc_tls_inactive(void *data);
+#ifdef OC_CLIENT
+static void
+oc_tls_free_invalid_peer(oc_tls_peer_t *peer)
+{
+ OC_DBG("\noc_tls: removing invalid peer");
+ oc_list_remove(tls_peers, peer);
+
+ oc_ri_remove_timed_event_callback(p... |
[DeviceDriver][RTC] fixed warning when only enable finsh shell: function "date" was declared but never referenced | @@ -247,7 +247,7 @@ FINSH_FUNCTION_EXPORT(list_date, show date and time.)
FINSH_FUNCTION_EXPORT(set_date, set date. e.g: set_date(2010,2,28))
FINSH_FUNCTION_EXPORT(set_time, set time. e.g: set_time(23,59,59))
-#if defined(RT_USING_FINSH)
+#if defined(RT_USING_FINSH) && defined(FINSH_USING_MSH)
static void date(uint8_t ... |
types: fix reference to node.decl | @@ -162,7 +162,7 @@ local function checkfor(node, st, errors)
ftype = node.decl._type
if not types.equals(ftype, types.Integer) and
not types.equals(ftype, types.Float) then
- typeerror(errors, "type of for control variable " .. node.decl.name .. " must be integer or float", node.delc._pos)
+ typeerror(errors, "type of... |
Clarify description for QUICLY_ISSUED_CID_STATE_INFLIGHT | @@ -190,7 +190,7 @@ enum en_quicly_issued_cid_state_t {
*/
QUICLY_ISSUED_CID_STATE_PENDING,
/**
- * this entry has been sent and is waiting for ACK (or timeout)
+ * this entry has been sent and is waiting for ACK (or to be deemed lost)
*/
QUICLY_ISSUED_CID_STATE_INFLIGHT,
/**
|
Try new number hashing with frexp.
This may be a bit slower in some cases but generally should
have much better hashing for numbers. | #include <janet.h>
#endif
+#include <math.h>
+
JANET_THREAD_LOCAL JanetTraversalNode *janet_vm_traversal = NULL;
JANET_THREAD_LOCAL JanetTraversalNode *janet_vm_traversal_top = NULL;
JANET_THREAD_LOCAL JanetTraversalNode *janet_vm_traversal_base = NULL;
@@ -262,10 +264,19 @@ int32_t janet_hash(Janet x) {
hash = janet_s... |
Ensure expected eyre test results always up-to-date
By dynamically generating the content-length headers for the expected
results, based on their actual content. | %give
%response
%start
+ ::
+ %+ complete-http-start-event
:- 404
- :~ ['content-type' 'text/html']
- ['content-length' '156']
- ==
+ ['content-type' 'text/html']~
[~ (error-page:http-server-gate 404 %.n '/' ~)]
- complete=%.y
== ==
==
::
^= expected-move
:~ :* duct=~[/http-blah] %give %response
%start
+ ::
+ %+ comple... |
More "correct" emscripten support. | @@ -57,7 +57,7 @@ JANET_THREAD_LOCAL jmp_buf *janet_vm_jmp_buf = NULL;
/* How we dispatch instructions. By default, we use
* a switch inside an infinite loop. For GCC/clang, we use
* computed gotos. */
-#if defined(__GNUC__) && !defined(EMSCRIPTEN)
+#if defined(__GNUC__) && !defined(__EMSCRIPTEN__)
#define JANET_USE_CO... |
fix: fix check error | @@ -728,7 +728,7 @@ START_TEST(test_002InitWallet_0009InitEthWalletWithNullConfig)
rtnVal = BoatEthWalletInit(NULL, sizeof(BoatEthWalletConfig));
/* 2. verify test result */
/* 2-1. verify the return value */
- ck_assert_ptr_null(rtnVal);
+ ck_assert_ptr_eq(rtnVal,NULL);
/* 2-2. verify the global variables that be affe... |
bootloader: Don't use check_python_dependencies in the bootloader command | @@ -49,7 +49,7 @@ ifndef CONFIG_SECURE_BOOT_ENABLED
# If secure boot disabled, bootloader flashing is integrated
# with 'make flash' and no warnings are printed.
-bootloader: $(BOOTLOADER_BIN) check_python_dependencies
+bootloader: $(BOOTLOADER_BIN) | check_python_dependencies
@echo $(SEPARATOR)
@echo "Bootloader built... |
Camel: Add additional tags to `info/status` | - infos/provides =
- infos/recommends =
- infos/placements =
-- infos/status = maintained preview experimental unfinished concept discouraged
+- infos/status = maintained preview experimental unfinished concept discouraged shelltest unittest
- infos/metadata =
- infos/description = A very basic plugin that reads and wr... |
chat-hook: send updates to synced every time the object changes | allow-history (~(put by allow-history) path.act allow-history.act)
==
:_ state
- [%pass chat-path %agent [our.bol %chat-store] %watch chat-path]~
+ :~ [%pass chat-path %agent [our.bol %chat-store] %watch chat-path]
+ [%give %fact [/synced]~ %chat-hook-update !>([%initial synced])]
+ ==
::
%add-synced
?> (team:title our... |
perfmon: null-terminate string
Type: fix | @@ -78,7 +78,7 @@ format_instance_name (intel_uncore_unit_type_t u, char *unit_fmt, u8 socket_id,
{
u8 *fmt = 0;
- fmt = format (0, "%s (%s)", unit_fmt, (n->unit_names[ubox]));
+ fmt = format (0, "%s (%s)%c", unit_fmt, (n->unit_names[ubox]), 0);
s = format (0, (char *) fmt, socket_id, ubox);
vec_free (fmt);
|
publish: allow refreshing into a note | import React, { useEffect } from "react";
import { RouteComponentProps, Link, Route, Switch } from "react-router-dom";
-import { Box, Text } from "@tlon/indigo-react";
-import GlobalApi from "~/api/global";
+import { Center, LoadingSpinner } from "@tlon/indigo-react";
+import GlobalApi from "~/logic/api/global";
import... |
use --prefix option instead of `cd` | "license": "MIT",
"main": "src/index.js",
"scripts": {
- "postinstall": "cd ../client && npm install",
+ "postinstall": "npm install --prefix ../client",
"start": "npm run build && npm run start:prod",
"start:verbose": "npm run build && npm run start:prod:verbose",
- "build": "cross-env NODE_ENV=production babel -d bui... |
add alignment check to aligned_alloc for C11 compliance | @@ -71,6 +71,7 @@ void* mi_pvalloc(size_t size) mi_attr_noexcept {
}
void* mi_aligned_alloc(size_t alignment, size_t size) mi_attr_noexcept {
+ if (alignment != 0 && (size%alignment) != 0) return NULL; // C11 required; <https://en.cppreference.com/w/c/memory/aligned_alloc>
return mi_malloc_aligned(size, alignment);
}
|
Docs: Fixed EHCx_OFF comment. | * If the "XHCI Mode" option is not available in yours BIOS or works incorrectly, then use this ACPI table.
* Disabling through BIOS is preferable whenever possible.
*
- * WARN: for 7-series you need to use either "EH1D = One" or "EH2D = One" but not both!
- * This is because only one of the devices (EHC1 or EHC2) is us... |
Remove x86 Conan/Linux jobs.
Avoids build issues with SDL2 dependencies. | @@ -11,7 +11,7 @@ jobs:
- os: linux
language: python
python: 3.7
- env: BUILD_TOOL=conan CONAN_GCC_VERSIONS=7 CONAN_DOCKER_IMAGE=conanio/gcc7
+ env: BUILD_TOOL=conan CONAN_GCC_VERSIONS=7 CONAN_ARCHS=x86_64 CONAN_DOCKER_IMAGE=conanio/gcc7
services:
- docker
- os: osx
|
minor tweek to text | @@ -1379,8 +1379,8 @@ Position-Based CMFE Function: ``pos_cmfe()`` : ``pos_cmfe(<Donor Variable>,<Targ
#. ...the *Database* in which the donor variable resides,
#. ...the *State Id* from which to take the donor variable,
- #. ...the *Modality*, cycle, time, or index by which states are
- identified in the *State Id* su... |
apps/Applicatin.mk: Fixe some build issues. (1) Unable to found target 'context' when CONFIG_NSH_BUILTIN_APPS disabled. (2) Unable to generate multiple programs. | @@ -98,7 +98,7 @@ VPATH += :.
# Targets follow
all:: .built
-.PHONY: .proglist clean preconfig depend distclean
+.PHONY: clean preconfig depend distclean
.PRECIOUS: $(APPDIR)/libapps$(LIBEXT)
ifneq ($(CONFIG_BUILD_LOADABLE),y)
@@ -186,18 +186,18 @@ endif
PROGLIST := $(addprefix $(PROGPRFX),$(PROGNAME))
PROGOBJ := $(MAI... |
Update fingerprints.txt
Add Paul Dale as an approved release signer. | @@ -12,13 +12,11 @@ in the file named openssl-1.0.1h.tar.gz.asc.
The following is the list of fingerprints for the keys that are
currently in use to sign OpenSSL distributions:
-pub 4096R/7DF9EE8C 2014-10-04
- Key fingerprint = 7953 AC1F BC3D C8B3 B292 393E D5E9 E43F 7DF9 EE8C
-uid Richard Levitte <richard@opensslfound... |
rune/libenclave: Code clean up for skeleton | @@ -145,7 +145,7 @@ out_dev_fd:
return false;
}
-bool get_file_size(const char *path, off_t *bin_size)
+static bool get_file_size(const char *path, off_t *bin_size)
{
struct stat sb;
int ret;
@@ -165,7 +165,7 @@ bool get_file_size(const char *path, off_t *bin_size)
return true;
}
-bool encl_data_map(const char *path, v... |
Add git info cabal file | @@ -13,6 +13,10 @@ build-type: Simple
extra-source-files: ChangeLog.md
cabal-version: >=1.10
+source-repository head
+ type: git
+ location: https://github.com/hslua/hslua-module-text.git
+
library
exposed-modules: Foreign.Lua.Module.Text
build-depends: base >= 4.8 && < 4.11
|
oauth2: fix token expiration check | @@ -328,8 +328,8 @@ char *flb_oauth2_token_get(struct flb_oauth2 *ctx)
now = time(NULL);
if (ctx->access_token) {
- /* validate expired token */
- if (ctx->expires < now && flb_sds_len(ctx->access_token) > 0) {
+ /* validate unexpired token */
+ if (ctx->expires > now && flb_sds_len(ctx->access_token) > 0) {
return ctx... |
ci: fix wget error downloading arm-gcc-embedded
Disable certificate verification for developer.arm.com to avoid
certificate issues when installing arm embedded tools to build Mynewt. | @@ -45,7 +45,7 @@ arm_toolchain_install() {
mkdir -p $TOOLCHAIN_PATH
if [ ! -s ${TOOLCHAIN_PATH}/$GCC_BASE/bin/arm-none-eabi-gcc ]; then
- wget -O ${TOOLCHAIN_PATH}/${GCC_BASE}.tar.bz2 $GCC_URL
+ wget --no-check-certificate -O ${TOOLCHAIN_PATH}/${GCC_BASE}.tar.bz2 $GCC_URL
[[ $? -ne 0 ]] && exit 1
tar xfj ${TOOLCHAIN_P... |
server: call flush only when idling | @@ -223,6 +223,11 @@ server_queuereader(void *d)
self->strmclose(self->strm);
self->fd = -1;
}
+ if (idle == 1)
+ /* ensure blocks are pushed out as soon as we're idling,
+ * this allows compressors to benefit from a larger
+ * stream of data to gain better compresion */
+ self->strmflush(self->strm);
gettimeofday(&sto... |
in_cpu: use new api for time management | * limitations under the License.
*/
+#include <fluent-bit/flb_info.h>
+#include <fluent-bit/flb_input.h>
+#include <fluent-bit/flb_config.h>
+#include <fluent-bit/flb_stats.h>
+#include <fluent-bit/flb_time.h>
+
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <math.h>
#include <msgpack.h>
-#include ... |
Fix wrong grouping of dcombssq | @@ -798,10 +798,10 @@ zpotri,
# functions added for lapack-3.9.0
@lapackobjs2c = (@lapackobjs2c,
cgesvdq,
- cungtsqr,
- dcombssq,
+ cungtsqr
);
@lapackobjs2d = (@lapackobjs2d,
+ dcombssq,
dgesvdq,
dorgtsqr,
);
|
schema features BUGFIX submodule feature search
Main module features mmust be searched if
a feature in submodule without prefix is
being searched for. | @@ -152,6 +152,11 @@ lysp_feature_find(const struct lysp_module *pmod, const char *name, size_t len,
name = ptr + 1;
}
+ /* feature without prefix, look in main module and all submodules */
+ if (pmod->is_submod) {
+ pmod = pmod->mod->parsed;
+ }
+
/* we have the correct module, get the feature */
while ((f = lysp_feat... |
Use defdyn for syspath in boot.janet | ###
###
+(defdyn *syspath*
+ "Path of directory to load system modules from.")
+
# Initialize syspath
(each [k v] (partition 2 (tuple/slice boot/args 2))
(case k
- "JANET_PATH" (setdyn :syspath v)))
+ "JANET_PATH" (setdyn *syspath* v)))
(defn make-env
`Create a new environment table. The new environment
(var error-leve... |
ames: use +crub for comet attestation | +$ packet [dyad encrypted=? origin=(unit lane) content=*]
:: $open-packet: unencrypted packet payload, for comet self-attestation
::
-:: The .signature applies to all other fields in this data structure.
+:: This data structure gets signed and jammed to form the .contents
+:: field of a $packet.
::
+$ open-packet
- $: ... |
bin: win32: fix 'error LNK2001: unresolved external symbol config'
has removed the global symbol "config" on which winsvc.c
depends. This ended up producing the following error:
error LNK2001: unresolved external symbol config
Bring back the symbol to make Windows Service working again. | @@ -58,6 +58,7 @@ extern void win32_started(void);
#endif
flb_ctx_t *ctx;
+struct flb_config *config;
#ifdef FLB_HAVE_LIBBACKTRACE
struct flb_stacktrace flb_st;
@@ -760,7 +761,6 @@ int flb_main(int argc, char **argv)
struct flb_input_instance *in = NULL;
struct flb_output_instance *out = NULL;
struct flb_filter_instanc... |
SidebarItem: fix dark mode colors | @@ -38,7 +38,7 @@ function SidebarItemBase(props: {
isSynced = false,
mono = false
} = props;
- const color = isSynced ? 'black' : 'lightGray';
+ const color = isSynced ? (hasUnread || hasNotification) ? 'black' : 'gray' : 'lightGray';
const fontWeight = hasUnread || hasNotification ? '500' : 'normal';
|
[lib][libc] fix an incorrect include path in a libc file | * license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT
*/
-#include <libc/string.h>
-#include <libc/ctype.h>
+#include <ctype.h>
+#include <string.h>
void *memscan(void *addr, int c, size_t size) {
unsigned char *p = (unsigned char *)addr;
|
Rename macro for clarity and move variable definition | #define VAL_CTRL_MEAS_TEST 0x55
/*---------------------------------------------------------------------------*/
/* Misc. */
-#define MEAS_DATA_SIZE 6
+#define SENSOR_DATA_BUF_SIZE 6
/*---------------------------------------------------------------------------*/
#define RES_OFF 0
#define RES_ULTRA_LOW_POWER 1
@@ -323,19... |
Add check of HTTP method to OSSL_HTTP_REQ_CTX_content() | @@ -207,6 +207,10 @@ static int OSSL_HTTP_REQ_CTX_content(OSSL_HTTP_REQ_CTX *rctx,
ERR_raise(ERR_LIB_HTTP, ERR_R_PASSED_NULL_PARAMETER);
return 0;
}
+ if (rctx->method_GET) {
+ ERR_raise(ERR_LIB_HTTP, ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED);
+ return 0;
+ }
if (content_type != NULL
&& BIO_printf(rctx->mem, "Content-Type: %s... |
pbio/trajectory: Drop direct t0, th0 reads.
Replace them with the relevant value that was used to set it in the first place, or re-evaluate the reference if we have to.
We want to remove any direct access to trajectory data so we can change units without breaking anything. | @@ -189,7 +189,7 @@ void pbio_control_update(pbio_control_t *ctl, int32_t time_now, pbio_control_sta
// If we are getting here on completion of a timed command with
// a stationary endpoint, convert it to a stationary angle
// based command and hold it.
- if (pbio_control_type_is_time(ctl) && ctl->trajectory.w3 == 0) {... |
fix(workflow) speed up MicroPython workflow
Previously cloning submodules took a very long time - too slow to give useful feedback. | @@ -21,8 +21,10 @@ jobs:
run: |
git clone https://github.com/lvgl/lv_micropython.git .
git checkout master
- - name: Update submodules
- run: git submodule update --init --recursive
+ - name: Initialize lv_bindings submodule
+ run: git submodule update --init --recursive lib/lv_bindings
+ - name: Update Unix port submo... |
board/agah/usbc_config.c: Format with clang-format
BRANCH=none
TEST=none | @@ -116,18 +116,17 @@ const static struct ps8818_reg_val equalizer_default_table[] = {
#define NUM_EQ_DEFAULT_ARRAY ARRAY_SIZE(equalizer_default_table)
-int board_ps8818_mux_set(const struct usb_mux *me,
- mux_state_t mux_state)
+int board_ps8818_mux_set(const struct usb_mux *me, mux_state_t mux_state)
{
int rv = EC_SU... |
Use ALLOCATE instead of calloc | @@ -264,7 +264,7 @@ static Value joinNative(DictuVM *vm, int argCount, Value *args) {
// separator, but having likely at most a few bytes of unused memory in the resulting string
// object's char array should be fine.
- char* str = calloc(resultSize, sizeof *str);
+ char* str = ALLOCATE(vm, char, resultSize);
char* des... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.