message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
avx512bw: Correct casts causing MSVC warning-errors.
Fixes | @@ -451,7 +451,7 @@ simde_mm512_adds_epi16 (simde__m512i a, simde__m512i b) {
const int32_t tmp =
HEDLEY_STATIC_CAST(int32_t, a_.i16[i]) +
HEDLEY_STATIC_CAST(int32_t, b_.i16[i]);
- r_.i16[i] = HEDLEY_STATIC_CAST(int32_t, ((tmp < INT16_MAX) ? ((tmp > INT16_MIN) ? tmp : INT16_MIN) : INT16_MAX));
+ r_.i16[i] = HEDLEY_STAT... |
Cleanup comments/coding style to match contribution guide... | @@ -2504,7 +2504,8 @@ http_resolve_cb(
*resdefault; /* Default path */
char resource[257], /* Remote path */
fqdn[256]; /* FQDN of the .local name */
- char ifname[IF_NAMESIZE]; /* Interface name */
+ char ifname[IF_NAMESIZE];
+ /* Interface name */
AvahiStringList *pair; /* Current TXT record key/value pair */
char *v... |
Fix chip settings restore after tx filter calibration fail | @@ -313,10 +313,9 @@ uint8_t TuneRxFilter(const float_type rx_lpf_freq_RF)
SaveChipState(0);
status = TuneRxFilterSetup(rx_lpf_IF);
- UpdateRSSIDelay();
if(status != MCU_NO_ERROR)
goto RxFilterSearchEndStage;
-
+ UpdateRSSIDelay();
{
uint8_t g_rxloopb_rfe = Get_SPI_Reg_bits(G_RXLOOPB_RFE);
while(GetRSSI() < 0x2700 && g... |
Avoiding reading register from check method as this seems to halt the process. | @@ -444,7 +444,7 @@ static bool ReadTrace(stlink_t* stlink, st_trace_t* trace) {
return true;
}
-static void CheckForConfigurationError(stlink_t* stlink, st_trace_t* trace) {
+static void CheckForConfigurationError(st_trace_t* trace) {
uint32_t elapsed_time_s = time(NULL) - trace->start_time;
if (trace->configuration_c... |
tree data BUGFIX avoid double node logging | @@ -957,8 +957,6 @@ lyd_create_meta(struct lyd_node *parent, struct lyd_meta **meta, const struct ly
assert((parent || meta) && mod);
- LOG_LOCSET(ctx_node, parent, NULL, NULL);
-
LY_ARRAY_FOR(mod->compiled->exts, u) {
if ((mod->compiled->exts[u].def->plugin == lyplg_find(LYPLG_EXTENSION, LYEXT_PLUGIN_INTERNAL_ANNOTATI... |
iokernel: bug fix - checksum offloads require that l2/l3
lengths are set in rte_mbuf | @@ -537,6 +537,8 @@ static void dpdk_tx_burst(uint8_t port)
buf->pkt_len = net_hdr->len;
buf->data_len = net_hdr->len;
buf->ol_flags = 0;
+
+ if (net_hdr->olflags != 0) {
if (net_hdr->olflags & OLFLAG_IP_CHKSUM)
buf->ol_flags |= PKT_TX_IP_CKSUM;
if (net_hdr->olflags & OLFLAG_TCP_CHKSUM)
@@ -546,6 +548,10 @@ static void... |
Fix spacy parameters reinit in simplified jobs | @@ -727,6 +727,7 @@ function addDbConnector() {
} else {
$("#addDb").trigger("reset");
$("#dbOCR").hide();
+ $("#dbSpacy").hide();
var jobStarted = "";
if (document.getElementById('dbStartJob').checked) {
jobStarted = " and started";
@@ -747,6 +748,8 @@ function addDbConnector() {
clearStatus($("#dbTikaOCRHost"));
clea... |
cc: explicit option to output compression matrix | /* Copyright 2013-2014. The Regents of the University of California.
- * Copyright 2015. Martin Uecker.
+ * Copyright 2015,2017 Martin Uecker.
* All rights reserved. Use of this source code is governed by
* a BSD-style license which can be found in the LICENSE file.
*
* Authors:
- * 2012-2015 Martin Uecker <martin.ueck... |
Create combined Go package. | @@ -100,6 +100,18 @@ pushd "${NUPKG_TMP_DIR}"
zip -r "${OUTPUT}/${NUPKG_NAME}" ./*
popd
+# Go
+GO_TMP_DIR="${SCRIPT_DIR}/go"
+find "${LINUX_X86_64}" -name '*go.zip' -print0 | \
+ xargs -0 -I{} unzip -d "${GO_TMP_DIR}" -o {}
+find "${MACOSX_X86_64}" -name '*go.zip' -print0 | \
+ xargs -0 -I{} unzip -d "${GO_TMP_DIR}" -o... |
Clean up some qnav layout logic | @@ -110,25 +110,30 @@ void qnav_stack_push(Qblock* qb, int height, int width) {
}
#endif
int top = 0, left = 0;
- int totalheight = height + 2, totalwidth = width + 3;
+ int total_h = height + 2, total_w = width + 3;
if (qnav_stack.count > 0) {
WINDOW* w = qnav_stack.blocks[qnav_stack.count - 1]->outer_window;
int prev... |
Remove NPC logic from PointNClick | @@ -34,42 +34,6 @@ void Update_PointNClick() {
tile_x = player.pos.x >> 3;
tile_y = player.pos.y >> 3;
- // Cleanup after script complete -------------------------------
-
- if (script_complete) {
- ActorsUnstick();
- }
-
- // NPC Logic ---------------------------------------------------
-
- for (i = 1; i < actors_acti... |
VERSION bump to version 0.11.7 | @@ -29,7 +29,7 @@ set(CMAKE_C_FLAGS_DEBUG "-g -O0")
# set version
set(LIBNETCONF2_MAJOR_VERSION 0)
set(LIBNETCONF2_MINOR_VERSION 11)
-set(LIBNETCONF2_MICRO_VERSION 6)
+set(LIBNETCONF2_MICRO_VERSION 7)
set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION}.${LIBNETCONF2_MICRO_VERSION})
set(LIB... |
supress a string conversion to char * warning | @@ -10,7 +10,7 @@ set(CMAKE_C_STANDARD 11)
set(CMAKE_BUILD_TYPE DEBUG)
set(CMAKE_C_FLAGS "-DLIBDISCORD_DEBUG -D_XOPEN_SOURCE=700")
-set(CMAKE_CXX_FLAGS "-DLIBDISCORD_DEBUG -D_XOPEN_SOURCE=700")
+set(CMAKE_CXX_FLAGS "-DLIBDISCORD_DEBUG -D_XOPEN_SOURCE=700 -Wno-c++11-compat-deprecated-writable-strings")
set(CMAKE_EXE_LIN... |
Add rotary to build.py defines | @@ -120,6 +120,7 @@ minimal_monochrome = {
"LV_USE_PAGE":0,
"LV_USE_SPINNER":0,
"LV_USE_ROLLER":0,
+ "LV_USE_ROTARY":0,
"LV_USE_SLIDER":0,
"LV_USE_SPINBOX":0,
"LV_USE_SWITCH":0,
@@ -196,6 +197,7 @@ all_obj_minimal_features = {
"LV_USE_PAGE":1,
"LV_USE_SPINNER":0, #Disabled beacsue needs anim
"LV_USE_ROLLER":1,
+ "LV_US... |
Fix C decode_huffman's exit with excess high bits. | @@ -223,6 +223,7 @@ end:
for (; n_bits >= 8; n_bits -= 8) {
psrc--;
}
+ bits &= (((uint32_t)(1)) << n_bits) - 1;
// Save contextual state.
a_dst.buf->wi = pdst - a_dst.buf->ptr;
|
better comp slack computing | @@ -668,8 +668,9 @@ static void print_footer(const ScsData *d, const ScsCone *k, ScsSolution *sol,
get_pri_cone_dist(sol->s, k, w->cone_work, d->m),
get_dual_cone_dist(sol->y, k, w->cone_work, d->m));
scs_printf("comp slack: s'y/|s||y| = %.4e\n",
- SCS(dot)(sol->s, sol->y, d->m) / SCS(norm)(sol->s, d->m) /
- SCS(norm)(... |
Shell Recorder: Add example with escaped slashes
This commit closes | @@ -21,6 +21,9 @@ STDERR: The command kdb not-a-command is not known
STDERR: .+not-a-command.+
< kdb not-a-command 1>/dev/null
+STDOUT: Create a new key user/test/\/evil\\\/tripleEscaped\\/doubleEscaped/key/.withADot/..andADoubleDot with string "txt"
+< kdb set $Mountpoint/\\/evil\\\\\\/tripleEscaped\\\\/doubleEscaped/... |
indicate mustache test start | @@ -27,10 +27,6 @@ static const size_t callback_max =
static void mustache_test_callback(mustache_section_s *section,
enum cb_type_e expected) {
- if (callback_count >= callback_max) {
- fprintf(stderr, "CRITICAL ERROR: mustache wtf?!\n");
- exit(-1);
- }
if (callback_expected[callback_count].cb_type == CB_ERROR) {
fpr... |
Update real tests to better indicate what they're testing. | @@ -63,12 +63,12 @@ TEST_F(BondSplicerTests, addTenantToken_TwoSameStrings_Returns0And1)
EXPECT_EQ(bs.addTenantToken(std::string { "Test" }), size_t { 1 });
}
-TEST_F(BondSplicerTests, Empty)
+TEST_F(BondSplicerTests, splice_Empty_SizeZero)
{
EXPECT_EQ(bs.splice().size(), size_t { 0 });
}
-TEST_F(BondSplicerTests, OneE... |
Makefile/clean: delete build-semihosting
Created by e.g. `make firmware-semihosting' | @@ -142,4 +142,4 @@ prepare-tidy: | build build-build
make -C build generate-protobufs rust-cbindgen
make -C build-build generate-protobufs rust-cbindgen
clean:
- rm -rf build build-build
+ rm -rf build build-build build-semihosting
|
driver/tcpm/anx7688.c: Format with clang-format
BRANCH=none
TEST=none | @@ -85,9 +85,9 @@ static void anx7688_update_hpd_enable(int port)
!(status & ANX7688_REG_STATUS_LINK)) {
reg &= ~ANX7688_REG_HPD_IRQ;
tcpc_write(port, ANX7688_REG_HPD,
- (status & ANX7688_REG_STATUS_LINK)
- ? reg | ANX7688_REG_HPD_ENABLE
- : reg & ~ANX7688_REG_HPD_ENABLE);
+ (status & ANX7688_REG_STATUS_LINK) ?
+ reg |... |
fixup! net/lwip: fix neighbor cache free function | @@ -455,8 +455,14 @@ void nd6_input(struct pbuf *p, struct netif *inp)
* and the entry's reachability state MUST be set to STALE. */
if (memcmp(neighbor_cache[i].lladdr, ND6H_LLADDR_OPT_ADDR(lladdr_opt), inp->hwaddr_len) != 0) {
MEMCPY(neighbor_cache[i].lladdr, ND6H_LLADDR_OPT_ADDR(lladdr_opt), inp->hwaddr_len);
- neig... |
[persistence] fix to write maxbkeyrange value if item type is simple kv. | @@ -840,6 +840,7 @@ int lrec_construct_setattr(LogRec *logrec, hash_item *it, uint8_t updtype)
ITSetAttrLog *log = (ITSetAttrLog*)logrec;
log->keyptr = (char*)item_get_key(it);
log->body.keylen = it->nkey;
+ log->body.maxbkrlen = BKEY_NULL;
int naddition = 0;
switch (updtype) {
@@ -859,14 +860,11 @@ int lrec_construct_... |
[hardware] Increase buffer depth of axi2mem to utilize full bandwidth | @@ -254,7 +254,7 @@ module mempool_system
.DataWidth (AxiDataWidth ),
.IdWidth (AxiTileIdWidth ),
.NumBanks (1 ),
- .BufDepth (2 )
+ .BufDepth (3 )
) i_axi2mem (
.clk_i (clk_i ),
.rst_ni (rst_ni ),
|
typechecker-regex-prototype: remove GHC_TARGET_PLATFORM2 | # GHC_QUICKCHECK_FOUND - True if the QuickCheck library is available
# GHC_VERSION - The numeric version of the ghc executable
# GHC_TARGET_PLATFORM - The target platform string of ghc
-# GHC_TARGET_PLATFORM2 - The target platform string of ghc - sanitized alternate version (darwin -> osx)
+# sanitized (darwin -> osx, ... |
minor fix to pack operation | @@ -233,26 +233,36 @@ static u16* pack(VRAMRegion *region, u16 nsize)
{
if (bsize != 0)
{
+ // store packed free memory for this block
*best = bsize;
if (bsize >= nsize)
return best;
+ // reset packed free size
bsize = 0;
}
+ // point to next memory block
b += psize & SIZE_MASK;
+ // remember it in case it becomes free... |
fixed wrong clock configuration in linux port
In Posix systems, the clock resolution is always clocks/s.
There is a macro in time.h for this.
Tested-by: Kishen Maloor | /* Time resolution */
#include <stdint.h>
+#include <time.h>
typedef uint64_t oc_clock_time_t;
-/* Sets one clock tick to 1 ms */
-#define OC_CLOCK_CONF_TICKS_PER_SECOND (1000)
+#define OC_CLOCK_CONF_TICKS_PER_SECOND CLOCKS_PER_SEC
/* Memory pool sizes */
#define OC_BYTES_POOL_SIZE (1500)
|
[docs] - Update SOURCEINSTALL to reflect the install of 16.0-0 development. | -# Source Install V 15.0-3
+# Source Install V 16.0-0
Build and install from sources is possible. However, the source build for AOMP is complex for several reasons.
- Many repos are required.
@@ -66,7 +66,13 @@ There is a "list" option on the clone\_aomp.sh that provides useful information
```
The above command will pr... |
Add bounds checking to length returned by wcslen in wide_to_asc conversion to resolve integer overflow flaw | @@ -1120,10 +1120,19 @@ static char *wide_to_asc(LPCWSTR wstr)
{
char *str;
int len_0, sz;
+ size_t len_1;
if (!wstr)
return NULL;
- len_0 = (int)wcslen(wstr) + 1; /* WideCharToMultiByte expects int */
+
+ len_1 = wcslen(wstr) + 1;
+
+ if (len_1 > INT_MAX) {
+ CAPIerr(CAPI_F_WIDE_TO_ASC, CAPI_R_FUNCTION_NOT_SUPPORTED);... |
EV3: Build drivers in build folder | @@ -150,7 +150,6 @@ SRC_C = \
coverage.c \
fatfs_port.c \
bgrtask.c \
- ../../drivers/control.c \
$(SRC_MOD)
LIB_SRC_C = $(addprefix lib/,\
@@ -158,6 +157,10 @@ LIB_SRC_C = $(addprefix lib/,\
timeutils/timeutils.c \
)
+PYBRICKS_DRIVERS_SRC_C = $(addprefix ports/pybricks/drivers/,\
+ control.c \
+ )
+
# FatFS VFS suppor... |
BugID:19877310: Add debug info to locate issue. | @@ -111,6 +111,7 @@ static int CoAPMessageList_add(CoAPContext *context, NetworkAddr *remote,
} else {
list_add_tail(&node->sendlist, &ctx->sendlist.list);
ctx->sendlist.count ++;
+ COAP_INFO("sendlist.count:%d\n", ctx->sendlist.count);
HAL_MutexUnlock(ctx->sendlist.list_mutex);
return COAP_SUCCESS;
}
@@ -266,7 +267,7 ... |
process: Set user stack pointer to NULL in execve handler
This fixes an Abort exception, when stack canary check is enabled.
JIRA: | @@ -1181,6 +1181,9 @@ static int process_execve(thread_t *current)
thread_t *parent = spawn->parent;
vm_map_t *map;
+ /* The old user stack is no longer valid */
+ current->ustack = NULL;
+
/* Restore kernel stack of parent thread */
if (parent != NULL) {
hal_memcpy(hal_cpuGetSP(parent->context), current->parentkstack ... |
Fix doc for EC_GROUP_set_curve() | @@ -98,10 +98,12 @@ EC_GROUP_new() is the same as EC_GROUP_new_ex() except that the library context
used is always the default library context.
EC_GROUP_set_curve() sets the curve parameters B<p>, B<a> and B<b>. For a curve
-over Fp B<b> is the prime for the field. For a curve over F2^m B<p> represents
+over Fp B<p> is... |
uart: Fix ticks_to_wait when 0 or expired
Closes:
Closes: | @@ -1040,20 +1040,25 @@ esp_err_t uart_wait_tx_done(uart_port_t uart_num, TickType_t ticks_to_wait)
UART_CHECK((uart_num < UART_NUM_MAX), "uart_num error", ESP_FAIL);
UART_CHECK((p_uart_obj[uart_num]), "uart driver error", ESP_FAIL);
BaseType_t res;
- portTickType ticks_end = xTaskGetTickCount() + ticks_to_wait;
+ port... |
Added condition of tag in travis
earlier the release builds were building on every build
now the condition will not allow to build on non tagged commits | @@ -13,7 +13,8 @@ jobs:
include:
# OS X Clang
- - os: osx
+ - stage: "Supported Platforms and Compilers"
+ os: osx
osx_image: xcode9.3
env: C_COMPILER=clang CXX_COMPILER=clang++
before_install:
@@ -126,7 +127,8 @@ jobs:
- libboost-log1.55-dev
- ninja-build
- - stage: "Linux release"
+ - stage: "Release Builds"
+ if: ta... |
py/pberror: fix typo in not supported error | @@ -77,7 +77,7 @@ void pb_assert(pbio_error_t error) {
"\n");
static const MP_DEFINE_STR_OBJ(msg_not_supported_obj, "\n\n"
"The requested operation is not support on this device:\n"
- "--> Check the documentation to for device compatibility.\n"
+ "--> Check the documentation for device compatibility.\n"
"--> Check the ... |
last fixes.. | @@ -116,7 +116,7 @@ if ( libxsmm_target_archid == LIBXSMM_X86_AVX512_MIC ||
for (oj = 0; oj < handle->ifhp; oj++) {
for (ij = 0; ij < handle->ifwp; ij++) {
input_ptr = (element_input_type*)&LIBXSMM_VLA_ACCESS(5, del_input, img, oj, ij, ifm1, 0, handle->ifhp, handle->ifwp, handle->blocksifm, handle->ifmblock);
- copy_pt... |
bugfix(ringbuffer): Fix ringbuffer_send timeout bug | @@ -602,7 +602,6 @@ BaseType_t xRingbufferSend(RingbufHandle_t ringbuf, void *data, size_t dataSize,
//we will need to wait some more.
if (ticks_to_wait != portMAX_DELAY) {
ticks_remaining = ticks_end - xTaskGetTickCount();
- }
// ticks_remaining will always be less than or equal to the original ticks_to_wait,
// unles... |
Post-merge fixes; | @@ -427,7 +427,7 @@ static void lovrGpuBindImage(Texture* texture, int slot) {
lovrRetain(texture);
lovrRelease(state.textures[slot]);
state.images[slot] = texture;
- glBindImageTexture(slot, texture->id, 0, false, 0, GL_READ_WRITE, texture->slices[0]->format);
+ glBindImageTexture(slot, texture->id, 0, false, 0, GL_RE... |
swaynag: improve robustness when loading config | @@ -422,24 +422,17 @@ int swaynag_load_config(char *path, struct swaynag *swaynag, list_t *types) {
if (line[0] == '[') {
char *close = strchr(line, ']');
- if (!close) {
- fprintf(stderr, "Closing bracket not found on line %d\n",
- line_number);
+ if (!close || close != &line[nread - 2] || nread <= 3) {
+ fprintf(stde... |
apps/system/readline_common.c: Correct spelling, matches vs maches. | @@ -90,7 +90,7 @@ static int g_cmd_history_len = 0;
****************************************************************************/
/****************************************************************************
- * Name: count_builtin_maches
+ * Name: count_builtin_matches
*
* Description:
* Count the number of builtin co... |
really enable VISIBILITY_HIDDEN by default | @@ -199,7 +199,7 @@ if (ENABLE_PROXY_DEVICE)
else()
set(VISIBILITY_HIDDEN_DEFAULT ON)
endif()
-option(VISIBILITY_HIDDEN "Build with -fvisibility=hidden -fvisibility-inlines-hidden" VISIBILITY_HIDDEN_DEFAULT)
+option(VISIBILITY_HIDDEN "Build with -fvisibility=hidden -fvisibility-inlines-hidden" ${VISIBILITY_HIDDEN_DEFAU... |
fash: fix frsky bind data offset | @@ -11,6 +11,7 @@ extern profile_t profile;
extern float accelcal[];
#define FMC_HEADER 0x12AA0001
+#define FRSKY_BIND_OFFSET OSD_FLASH_START + OSD_NUMBER_ELEMENTS
float initial_pid_identifier = -10;
@@ -105,7 +106,7 @@ void flash_save(void) {
#ifdef RX_FRSKY //currently starts at address 66
extern frsky_bind_data frsk... |
Fix bug that output of timestamp is not adjusted to nanoseconds | @@ -199,8 +199,8 @@ std::string strapperrorcode(uint16_t app_error_code) {
void print_timestamp() {
auto t = timestamp().count();
fprintf(outfile, "%st=%d.%06d%s ", ansi_esc("\033[33m"),
- static_cast<int32_t>(t / 1000000), static_cast<int32_t>(t % 1000000),
- ansi_escend());
+ static_cast<int32_t>(t / 1000000000),
+ s... |
CI: Update python dependency on Ubuntu rolling
Package 'python' no longer exists. Replace it with 'python3' | @@ -2,7 +2,7 @@ FROM ubuntu:rolling
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update -qq
RUN if [ `arch` != "ppc64le" ]; then apt-get install -y gcc-powerpc64le-linux-gnu; fi
-RUN apt-get install -y gcc ccache expect libssl-dev wget curl xterm device-tree-compiler build-essential gcc python g++ pkg-config libz-dev... |
Makes use of CFLAGS for clang-gdb1 test, fixing issue with -O0 being overwritten by -O2 | @@ -5,7 +5,8 @@ TESTSRC_MAIN = clang-gdb1.c
TESTSRC_AUX =
TESTSRC_ALL = $(TESTSRC_MAIN) $(TESTSRC_AUX)
-CLANG = clang -ggdb -O0 -mllvm -amdgpu-spill-cfi-saved-regs -gheterogeneous-dwarf -g -lm
+CLANG = clang
+CFLAGS = -ggdb -O0 -mllvm -amdgpu-spill-cfi-saved-regs -gheterogeneous-dwarf -g -lm
OMP_BIN = $(AOMP)/bin/$(CLA... |
Testing: fix awk expression that fails on HPC | @@ -62,7 +62,7 @@ r=`${test_dir}/bufr_extract_headers centre ${data_dir}/bufr/israel_observations_
# Check all centres with an abbreviation
centre_table=${ECCODES_DEFINITION_PATH}/common/c-11.table
-centres=`awk 'NR > 1 && $2 ~ /^[A-z]/ {print $2}' < $centre_table`
+centres=`awk 'NR > 1 {print $2}' < $centre_table`
for... |
dpdk/ipsec: fix setup when using master core only | @@ -276,13 +276,14 @@ dpdk_ipsec_process (vlib_main_t * vm, vlib_node_runtime_t * rt,
vec_alloc (dcm->workers_main, tm->n_vlib_mains);
_vec_len (dcm->workers_main) = tm->n_vlib_mains;
+ skip_master = vlib_num_workers () > 0;
+
fprintf (stdout, "DPDK Cryptodevs info:\n");
fprintf (stdout, "dev_id\tn_qp\tnb_obj\tcache_si... |
add some option descriptions to generated build.yml | @@ -10,6 +10,19 @@ rho_app_id: com.rhomobile.<%=@app_name_cleared%>
build: debug
applog: rholog.txt
+# enable encrypt of database
+#encrypt_database: 1
+
+# enable encryption of bundle by AES (only for iOS and Adnroid)
+# key should be generated by this command:
+# $ rake build:bundle:generate_AES_key
+#encrypt_files_k... |
bip158: change swp to flim:sha in +to-range | ++ to-range
|= [item=byts f=@ k=byts]
^- @
- (rsh [0 64] (mul f (swp 3 dat:(siphash k item))))
+ (rsh [0 64] (mul f +:(flim:sha (siphash k item))))
:: +set-construct: return sorted hashes of scriptpubkeys
::
++ set-construct
|
Add test for pg_ctl --wrapper and --wrapper-args | @@ -6,7 +6,7 @@ use Fcntl ':mode';
use File::stat qw{lstat};
use PostgresNode;
use TestLib;
-use Test::More tests => 24;
+use Test::More tests => 26;
my $tempdir = TestLib::tempdir;
my $tempdir_short = TestLib::tempdir_short;
@@ -108,3 +108,27 @@ command_ok([ 'pg_ctl', 'restart', '-D', "$tempdir/data" ],
'pg_ctl restar... |
Adding before-test.cmd to appveyor configuration | @@ -16,7 +16,7 @@ image:
init:
- set EPANET_HOME=%APPVEYOR_BUILD_FOLDER%
- set BUILD_HOME=buildprod
- - set TEST_HOME=tests\epanet-nrtestsuite
+ - set TEST_HOME=nrtestsuite
- set NRTEST_SCRIPT=C:\Python27\Scripts
- set GENERATOR="Visual Studio 10 2010"
- set BOOST_ROOT="C:\\Libraries\\boost"
@@ -41,7 +41,7 @@ build_scr... |
Detect initial condition in get namespaces command | @@ -7776,7 +7776,18 @@ GetNamespaces (
if (EFI_NO_RESPONSE == ReturnCode) {
ResetCmdStatus(pCommandStatus, NVM_ERR_BUSY_DEVICE);
}
+#ifdef OS_BUILD
goto Finish;
+#else
+ if ((ReturnCode == EFI_NOT_FOUND && IsLSANotInitializedOnDimms()))
+ {
+ NVDIMM_WARN("Failure to refresh Namespaces is because LSA not initialized");
... |
zephyr: configure led settings
Increase frequency to avoid LED keep changing colors.
Adjust RGB ratio for Amber color.
TEST=zmake build nereid
BRANCH=none | compatible = "cros-ec,pwm-leds";
leds = <&pwm_led0>;
- frequency = <324>;
+ frequency = <1296>;
/*<red green blue>*/
color-map-red = <100 0 0>;
color-map-blue = < 0 0 100>;
color-map-yellow = < 0 50 50>;
color-map-white = <100 100 100>;
- color-map-amber = <100 20 100>;
+ color-map-amber = <100 15 0>;
brightness-range ... |
test: cleans up output, adds |trim and |meld
with intervening |mass measurements | @@ -37,14 +37,20 @@ stdenvNoCC.mkDerivation {
trap cleanup EXIT
+ # measure initial memory usage
+ #
+ herb ./pier -d '~& ~ ~& %init-mass-start ~'
herb ./pier -p hood -d '+hood/mass'
+ herb ./pier -d '~& ~ ~& %init-mass-end ~'
- # Run the unit tests and then print scrollback
+ # run the unit tests
+ #
herb ./pier -d '~... |
comment all ap-less M2 | @@ -1172,10 +1172,6 @@ if(eapauth->type == EAPOL_KEY)
fprintf(stdout, " [FOUND HANDSHAKE AP-LESS, EAPOL TIMEOUT %d]\n", calceapoltimeout);
pownedcount++;
}
- memset(&laststam1, 0, 6);
- memset(&lastapm1, 0, 6);
- lastrcm1 = 0;
- lasttimestampm1 = 0;
return;
}
if(fd_pcapng != 0)
|
Use bundler instead of manipulating load paths. | # To make testing/debugging easier, test within this source tree versus an installed gem
-dir = File.dirname(__FILE__)
-root = File.expand_path(File.join(dir, '..'))
-lib = File.expand_path(File.join(root, 'lib'))
-ext = File.expand_path(File.join(root, 'ext', 'libxml'))
-
-$LOAD_PATH << lib
-$LOAD_PATH << ext
-
-requi... |
fixed bug in dcp when do_sync wasn't set it wasn't cutting the path components correctly | @@ -534,7 +534,7 @@ char* mfu_param_path_copy_dest(const char* name, int numpaths,
* otherwise cut all components listed in source path */
int cut = src_components;
if (mfu_copy_opts->copy_into_dir && cut > 0) {
- if (!mfu_copy_opts->do_sync) {
+ if (mfu_copy_opts->do_sync != 1) {
cut--;
}
}
|
arch/arm/src/amebad: Fix the 'extra CR after LF' issue
Add function LOGUART_PutChar_RAM | @@ -374,6 +374,25 @@ static u32 uart_index_get(PinName tx)
return 3;
}
+static void LOGUART_PutChar_RAM(u8 c)
+{
+ UART_TypeDef* LOGUART = UART2_DEV;
+ u32 CounterIndex = 0;
+
+ if (ConfigDebugClose == 1)
+ return;
+
+ while(1) {
+ CounterIndex++;
+ if (CounterIndex >=6540)
+ break;
+
+ if (LOGUART->LSR & RUART_LINE_ST... |
fixed handling of zeroed mac_aps | @@ -434,10 +434,6 @@ qsort(aplist, aplistcount, APLIST_SIZE, sort_aplist_by_essid);
printf("\e[1;1H\e[2J");
for(c = 0; c < aplistcount; c++)
{
- if(memcmp(zeiger->addr, &mac_null, 6) == 0)
- {
- break;
- }
tvfd.tv_sec = zeiger->timestamp /1000000;
tvfd.tv_usec = 0;
strftime(timestring, 16, "%H:%M:%S", localtime(&tvfd.t... |
Update default build options for android
IPV4=1, TCP=1, and CLOUD=1 added to the default build
options
This change was in responce to a request from maintainer
Kishen Maloor | @@ -82,6 +82,9 @@ MKDIR ?= mkdir
DYNAMIC ?= 1
export SECURE ?= 1
export PKI ?= 1
+IPV4 ?= 1
+TCP ?= 1
+export CLOUD ?= 1
# unlike other IoTivity-lite builds Android assumes we want to build Java by
# default. It also assumes the use of OC_IDD_API is used by default.
JAVA ?= 1
|
Fix font library memory leak bug. | @@ -315,7 +315,8 @@ rb_insert( RBTree *rbt, int key, const void *keydata, void *data )
parent_node = NULL;
root = rbt->root;
- node = rb_search_auxiliary( root, key, keydata, rbt->compare, &parent_node );
+ node = rb_search_auxiliary( root, key, keydata,
+ rbt->compare, &parent_node );
if( node ) {
return NULL;
}
|
GEN_PROTO section for PROTO_LIBRARY
Fixed blinked UIDs exposed by proto file generator invoked inside PROTO_LIBRARY | @@ -5121,6 +5121,7 @@ macro TASKLET_REG(Name, Lang, Impl, Includes...) {
### See: [GRPC()](#macro_GRPC), [OPTIMIZE_PY_PROTOS()](#macro_OPTIMIZE_PY_PROTOS), [INCLUDE_TAGS()](#macro_INCLUDE_TAGS), [EXCLUDE_TAGS()](#macro_EXCLUDE_TAGS)
multimodule PROTO_LIBRARY {
module CPP_PROTO : LIBRARY {
+ ENABLE(GEN_PROTO)
SET(PEERDI... |
default to localhost | <collectionProp name="Arguments.arguments">
<elementProp name="APP_SERVER" elementType="Argument">
<stringProp name="Argument.name">APP_SERVER</stringProp>
- <stringProp name="Argument.value">ubuntu.zmartzone.eu</stringProp>
+ <stringProp name="Argument.value">localhost.zmartzone.eu</stringProp>
<stringProp name="Argum... |
Add style checking to the CI | @@ -33,6 +33,19 @@ git:
matrix:
include:
+ # Style checking
+ - os: linux
+ language: python
+ python:
+ - "3.5"
+ addons:
+ apt:
+ packages:
+ - "python3-pip"
+ env:
+ - TEST=STYLE
+ - DEBUG=1
+
# RAT Report
- os: linux
language: python
@@ -134,7 +147,7 @@ matrix:
before_install:
- printenv
- export GOPATH=$HOME/gopat... |
Cannot make symbol for define with same name | @@ -312,6 +312,9 @@ ldns_serial_arithmetics_gmtime_r(int32_t time, time_t now, struct tm *result)
#endif
}
+#ifdef ldns_serial_arithmitics_gmtime_r
+#undef ldns_serial_arithmitics_gmtime_r
+#endif
/* alias function because of previously used wrong spelling */
struct tm *
ldns_serial_arithmitics_gmtime_r(int32_t time, t... |
cpu_start: rename function to add core prefix for more clarity | @@ -137,7 +137,7 @@ static volatile bool s_resume_cores;
// If CONFIG_SPIRAM_IGNORE_NOTFOUND is set and external RAM is not found or errors out on testing, this is set to false.
bool g_spiram_ok = true;
-static void intr_matrix_clear(void)
+static void core_intr_matrix_clear(void)
{
uint32_t core_id = cpu_hal_get_core_... |
additional traces for auto_specs | @@ -2708,7 +2708,7 @@ def run_as_spec(device_flag, uninstall_app)
end
- timeout_in_seconds = 30*60
+ timeout_in_seconds = 25*60
timeout_output_in_seconds = 60
last_output_time = Time.now
|
Check stateless reset token from CID bound to the same remote address | @@ -5473,8 +5473,8 @@ static int conn_recv_stop_sending(ngtcp2_conn *conn,
* NGTCP2_ERR_CALLBACK_FAILURE
* User callback failed.
*/
-static int conn_on_stateless_reset(ngtcp2_conn *conn, const uint8_t *payload,
- size_t payloadlen) {
+static int conn_on_stateless_reset(ngtcp2_conn *conn, const ngtcp2_path *path,
+ cons... |
Use the travis provided php | @@ -2,7 +2,7 @@ language: cpp
cache: ccache
-php: system
+php: '7.0'
compiler: gcc
@@ -21,7 +21,7 @@ matrix:
- sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test
- sudo apt-add-repository --yes ppa:smspillaz/cmake-2.8.12
- sudo apt-get --yes update
- - sudo apt-get install --yes cmake cmake-data g++-4.8 libstdc+... |
Initial commit for report_diff | @@ -130,6 +130,8 @@ def nrtest_execute(app_path, test_path, output_path):
exit(not success)
+import report_diff as rd
+
if __name__ == "__main__":
# app_path = "apps\\swmm-5.1.11.json"
# test_path = "tests\\examples\\example1.json"
@@ -141,7 +143,9 @@ if __name__ == "__main__":
# print(nrtest_compare(test_path, ref_pat... |
Updated link to Hermes-core | @@ -32,7 +32,7 @@ Themis provides four important cryptographic services:
**Want to go straight to the detailed documentation?** [Please proceed here](https://www.github.com/cossacklabs/themis/wiki).
-We created Themis to build other products on top of it - i.e. [Acra](https://github.com/cossacklabs/acra) and [Hermes](h... |
[drivers][alarm] Optimize some codes | @@ -217,7 +217,7 @@ static void alarm_update(rt_uint32_t event)
struct rt_alarm *alarm;
rt_int32_t sec_now, sec_alarm, sec_tmp;
rt_int32_t sec_next = 24 * 3600, sec_prev = 0;
- time_t timestamp;
+ time_t timestamp = (time_t)0;
struct tm now;
rt_list_t *next;
@@ -225,12 +225,8 @@ static void alarm_update(rt_uint32_t eve... |
Update iodine.gemspec with small grammar fix
Fixes a small grammatical issue in the gemspec. | @@ -45,5 +45,5 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'rake-compiler', '>= 1', '< 2.0'
spec.post_install_message = "Thank you for installing Iodine #{Iodine::VERSION}.\n" +
- "Remember: if iodine supports your business, it's is only fair to give value back (code contributions / donations)."... |
router_printconfig: fix typo causing misbehaviour
debug mode should show the contents of match groups, it didn't because
of a typo that happened to compile (so went unnoticed sofar) | @@ -2559,7 +2559,7 @@ router_printconfig(router *rtr, FILE *f, char pmode)
fprintf(f, "# common pattern group '%s' "
"contains %zu aggregations/matches\n",
++b, cnt);
- if (mode & PMODE_AGGR) {
+ if (pmode & PMODE_AGGR) {
router srtr;
memset(&srtr, 0, sizeof(srtr));
srtr.routes = r->dests->cl->members.routes;
|
feat: Add test functions declaration in header file | * limitations under the License.
*****************************************************************************/
+#ifndef __TCASE_ERHEREUM__
+#define __TCASE_ERHEREUM__
+
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
@@ -26,3 +29,11 @@ extern char g_ethereum_private_key_buf[1024];
extern BoatKeypairPriKeyC... |
ledc: Fix -Werror=maybe-uninitialized warning on glb_clk variable on specific kconfig options selected
Closes
Closes | @@ -28,6 +28,7 @@ static __attribute__((unused)) const char *LEDC_TAG = "ledc";
#define LEDC_ARG_CHECK(a, param) ESP_RETURN_ON_FALSE(a, ESP_ERR_INVALID_ARG, LEDC_TAG, param " argument is invalid")
#define LEDC_CLK_NOT_FOUND 0
+#define LEDC_SLOW_CLK_UNINIT -1
typedef enum {
LEDC_FSM_IDLE,
@@ -497,7 +498,7 @@ static esp_... |
Restore vbuf value after modification | @@ -873,6 +873,7 @@ void mbedtls_ecp_group_metadata( int id, int bit_size, int crv_type,
TEST_EQUAL( mbedtls_ecp_tls_read_group_id( &read_g_id, &vbuf, olen ),
0 );
TEST_EQUAL( read_g_id, id );
+ vbuf = buf;
TEST_EQUAL( mbedtls_ecp_tls_read_group( &grp_read, &vbuf, olen ),
0 );
TEST_EQUAL( grp_read.id, id );
|
parser: gc flag marking is smarter about generics.
The speculative case in the old code wasn't reachable. Can't have
generics without generics, lol. | @@ -4572,15 +4572,7 @@ static int get_gc_flags_for(lily_class *top_class, lily_type *target)
{
int result_flag = 0;
- if (target->cls->id == LILY_ID_GENERIC) {
- /* A class containing generics is always at least speculative, because
- it may have speculative content inside. */
- if (top_class->generic_count)
- result_f... |
BugID:22027810:[ota] modify compile for itls | @@ -24,7 +24,7 @@ $(NAME)_SOURCES := ota_core/ota_service.c \
$(NAME)_COMPONENTS += linkkit_sdk_c cjson http
-ifeq ($(SUPPORT_ITLS),y)
+ifeq ($(USE_ITLS),y)
$(NAME)_COMPONENTS += itls
ifeq ($(COMPILER),armcc)
GLOBAL_CFLAGS += -DOTA_CONFIG_ITLS -DCONFIG_HTTP_SECURE_ITLS=1 -DOTA_SIGNAL_CHANNEL=1 -DCONFIG_HTTP_SECURE=1
|
small memory leak for large edits | @@ -1607,6 +1607,7 @@ _n_edit(u3_noun big, u3_noun axe, u3_noun som)
? u3nc(_n_edit(u3k(u3h(big)), mor, som), u3k(u3t(big)))
: u3nc(u3k(u3h(big)), _n_edit(u3k(u3t(big)), mor, som));
u3z(mor);
+ u3z(big);
return pro;
}
}
|
Minor changes in FindNPM.cmake | #
-# CMake Find NPM Package Manager by Parra Studios
-# CMake script to find NPM Package Manager.
+# CMake Find NPM by Parra Studios
+# CMake script to find NodeJS Package Manager.
#
# Copyright (C) 2016 - 2021 Vicente Eduardo Ferrer Garcia <vic798@gmail.com>
#
|
Fake a version header for oss-fuzz builds | # This script is invoked by oss-fuzz from <root>/Source/
+# Generate a dummy verison header (normally built by CMake variable expansion)
+echo "#pragma once" > astcenccli_version.h
+echo "#define VERSION_STRING \"0.0.0\"" >> astcenccli_version.h
+echo "#define YEAR_STRING \"2021\"" >> astcenccli_version.h
+
# Build the... |
cleanup: Simplify deep loop checking. | @@ -802,23 +802,20 @@ void lily_emit_finish_block_code(lily_emit_state *emit, uint16_t line_num)
static lily_block *find_deepest_loop(lily_emit_state *emit)
{
- lily_block *block, *ret;
- ret = NULL;
-
- for (block = emit->block; block; block = block->prev) {
- if (block->block_type == block_while ||
- block->block_typ... |
perf_counter: conmvert to cycles fc side | @@ -48,6 +48,12 @@ void perf_counter_update() {
loop_counter++;
}
+#define ENCODE_CYCLES(val) \
+ { \
+ const uint32_t us = (val) / (SYS_CLOCK_FREQ_HZ / 1000000); \
+ CBOR_CHECK_ERROR(res = cbor_encode_uint32(enc, &us)); \
+ }
+
cbor_result_t cbor_encode_perf_counters(cbor_value_t *enc) {
CBOR_CHECK_ERROR(cbor_result_t... |
added optin -m (max clients per net) | #include "common.h"
-#define MAXPCAPOUT 20
+#define MAXPCAPOUT 40
#define HANDSHAKELEVEL 50
#define HANDSHAKEART1 1
#define HANDSHAKEART2 2
#define HANDSHAKEART3 3
#define HANDSHAKEART4 4
+/*===========================================================================*/
+/* globale Variablen */
+
+int maxcapout = MAXPCAP... |
apps/examples/testcase/ta_tc/systemio/itc : fix itc_iotbus_i2c_write_read_p | @@ -124,7 +124,7 @@ void itc_iotbus_i2c_write_read_p(void)
TC_ASSERT_EQ_CLEANUP("iotbus_i2c_write", (ret < 0), false, iotbus_i2c_stop(h_i2c));
ret = iotbus_i2c_read(h_i2c, szReadBuf, 10);
- TC_ASSERT_EQ_CLEANUP("iotbus_i2c_read", ret, IOTBUS_ERROR_NONE, iotbus_i2c_stop(h_i2c));
+ TC_ASSERT_GT_CLEANUP("iotbus_i2c_read",... |
MS Intellisense is confused by backslashes in paths. Replace them with common slash.
Pull-request for branch users/somov/fix_msvs_intellisense | @@ -1883,7 +1883,7 @@ when ($MSVC_INLINE_OPTIMIZED == "no") {
flags_debug += ['/MTd']
flags_release += ['/MT']
- vc_include = os.path.join(self.tc.vc_root, 'include') if not self.tc.ide_msvs else "$(VC_VC_IncludePath.Split(';')[0])"
+ vc_include = os.path.join(self.tc.vc_root, 'include') if not self.tc.ide_msvs else "$... |
Better check for compiler standard support | @@ -70,12 +70,8 @@ if (USINGISYSTEM AND GCC_VERSION VERSION_LESS 6.0)
endforeach()
endif()
-CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11)
-if(COMPILER_SUPPORTS_CXX11)
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
-else()
- message(FATAL_ERROR "Compiler ${CMAKE_CXX_COMPILER} has no C++11 support... |
ftp.c: EPSV: response 500 = broken server (or pure-ftpd -b)
500 = syntax error, command unrecognized
this error is only possible if using ipv4
also don't disable MLSD, only EPSV and EPRT | @@ -107,7 +107,7 @@ struct ftp_supported_feature ftp_supported_features[] =
{ FTP_FEAT_PRET, "PRET" },
{ FTP_FEAT_EPSV, "EPSV" }, /* rfc2428 */
{ FTP_FEAT_EPRT, "EPRT" }, /* rfc2428 */
- { 1, NULL },
+ { -1, NULL },
};
static void rfc2389_feat_supported_cmd (ftp_protocol_data * ftpdat, char * cmd)
@@ -834,18 +834,15 @@... |
Update rocmaster_check_smoke.sh skiptest list. | @@ -27,7 +27,7 @@ echo "**************************************************************************
echo " A non-zero exit code means a failure occured." >> check-smoke.txt
echo "***********************************************************************************" >> check-smoke.txt
-skiptests="devices pfspecifier pfspec... |
Correct comparison size of assembly marker | @@ -52,7 +52,7 @@ int s_CLR_RT_fTrace_SimulateSpeed = NANOCLR_TRACE_DEFAULT(c_CLR_RT_
#endif
#if !defined(BUILD_RTM)
-int s_CLR_RT_fTrace_AssemblyOverhead = NANOCLR_TRACE_DEFAULT(c_CLR_RT_Trace_Info,c_CLR_RT_Trace_None);
+int s_CLR_RT_fTrace_AssemblyOverhead = NANOCLR_TRACE_DEFAULT(c_CLR_RT_Trace_Info,c_CLR_RT_Trace_In... |
fix wrong parameter handling for va_list. | @@ -104,37 +104,37 @@ void mrbc_nprint(const char *str, int size)
//----------------------------------------------------------------
/* sub function for mrbc_snprintf, mrbc_printf
*/
-static int mrbc_printf_sub_output_arg( mrbc_printf_t *pf, va_list ap )
+static int mrbc_printf_sub_output_arg( mrbc_printf_t *pf, va_lis... |
build: expand header documentation | * 2. define the main stages of the pipeline
* 3. describe sub stages. This is where you will want to add new builds
* 4. helper section to help write build scripts
+ *
+ * General Information about Jenkinsfiles can be found at
+ * https://jenkins.io/doc/book/pipeline/jenkinsfile/.
+ *
+ * A Snipped generators is availa... |
Update default repl prompt to match errors. | (flush)
(defn getprompt [p]
(def [line] (parser/where p))
- (string "janet:" line ":" (parser/state p :delimiters) "> "))
+ (string "repl:" line ":" (parser/state p :delimiters) "> "))
(defn getstdin [prompt buf _]
(file/write stdout prompt)
(file/flush stdout)
|
kdb: abort with error if man could not be started
see | @@ -181,7 +181,12 @@ void runManPage (std::string command, std::string profile)
char * const argv[3] = { const_cast<char *> (man), const_cast<char *> (command.c_str ()), nullptr };
elektraExecve (man, argv);
- std::cout << "Was not able to execute man-page viewer: \"" << man << '"' << std::endl;
+ std::cout << "Sorry, ... |
launch: don't render invites tile | @@ -25,7 +25,9 @@ export default class Home extends Component {
// tileData["invites"] = ("invites" in this.props.data)
// ? this.props.data["invites"] : {};
}
+ if (tile !== "invites") {
return <Tile key={tile} type={tile} data={tileData} />;
+ }
});
let headerData = {};
|
INSTALL.md: fix the Debian binary link | * [Kernel Configuration](#kernel-configuration)
* [Packages](#packages)
- - [Debian](#debian--binary)
+ - [Debian](#debian---binary)
- [Ubuntu](#ubuntu---binary)
- [Fedora](#fedora---binary)
- [Arch](#arch---binary)
|
BugID:25422357: update coap config.in | +if AOS_CREATE_PROJECT
+config COAP_COMM_ENABLED
+ bool
+ default y
+ select INFRA_CJSON
+ select INFRA_JSON_PARSER
+ select INFRA_SHA256
+ select INFRA_MD5
+ select INFRA_REPORT
+ select INFRA_STRING
+ select COAP_PACKET
+ select INFRA_AES
+
+ help
+ Establish non-persistent connection with AliCloud via CoAP-based pro... |
Update of install_build_tools.sh. Testing on macOS showed
brew's glibtool worked where the Apple Inc. cctools-927.0.2
version of libtool did not. | @@ -28,7 +28,7 @@ FAILED=0
# Homebrew 2.1.6
# autoconf (GNU Autoconf) 2.69
# automake (GNU automake) 1.16.1
-# Apple Inc. version cctools-927.0.2
+# glibtool (GNU libtool) 2.4.6
# cmake version 3.14.5
# lcov: LCOV version 1.14
#
@@ -94,22 +94,22 @@ macOS_automake_install() {
fi
}
-macOS_libtool_exists() {
- if libtool ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.