message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Use incremental add | @@ -913,8 +913,8 @@ void compute_ideal_weights_for_decimation_table(
vfloat old_weight = gatherf(infilled_weights, texel);
vfloat ideal_weight = gatherf(eai_in.weights, texel);
- error_change0 = error_change0 + contrib_weight * scale;
- error_change1 = error_change1 + (old_weight - ideal_weight) * scale;
+ error_change... |
sample-plugin: refactor .api to use explicit types
Use explicit types in .api definition.
Type: refactor | /* Define a simple binary API to control the feature */
option version = "0.1.0";
+import "../../vnet/interface_types.api";
autoreply define sample_macswap_enable_disable {
/* Client identifier, set from api_main.my_client_index */
@@ -26,8 +27,8 @@ autoreply define sample_macswap_enable_disable {
u32 context;
/* Enabl... |
Fix Linux/Avahi build issues. | @@ -7332,9 +7332,9 @@ register_printer(
*/
avahi_entry_group_add_service_strlst(printer->dnssd_ref, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, 0, printer->dnssd_name, "_ipp._tcp", NULL, NULL, printer->port, ipp_txt);
- if (subtypes && *subtypes)
+ if (printer->dnssd_subtypes && *(printer->dnssd_subtypes))
{
- char *temptypes... |
updated control default | @@ -36202,13 +36202,25 @@ void safe_set(int *arr, int index, int newkey, int oldkey)
arr[index] = newkey;
}
-void keyboard_setup_menu_conf(int player, char *buf, char* command, char* filename, char buttonnames[][16])
+void keyboard_setup(int player)
{
- ptrdiff_t pos;
+ const int btnnum = MAX_BTN_NUM;
+ int quit = 0, s... |
Remove deprecated option from command/archive-push unit test. | @@ -605,7 +605,7 @@ testRun(void)
// -------------------------------------------------------------------------------------------------------------------------
argList = strLstNew();
strLstAddZ(argList, "--stanza=test");
- strLstAddZ(argList, "--no-compress");
+ hrnCfgArgRawZ(argList, cfgOptCompressType, "none");
strLst... |
samd21: make uart_init() static
Avoids a linker conflict if programs are using the same function name. | @@ -47,7 +47,7 @@ void USB_Handler(void)
//--------------------------------------------------------------------+
// UART support
//--------------------------------------------------------------------+
-void uart_init(void);
+static void uart_init(void);
//----------------------------------------------------------------... |
added some more weak pass | @@ -828,6 +828,8 @@ snprintf(pskstring, 64, "%s12345", basestring);
writepsk(pskstring);
snprintf(pskstring, 64, "12345%s", basestring);
writepsk(pskstring);
+snprintf(pskstring, 64, "%s@1234", basestring);
+writepsk(pskstring);
return;
}
/*===========================================================================*/
@... |
Cleanup toolchain-build a bit more | @@ -8,12 +8,13 @@ runs:
run: .github/scripts/create-hash.sh
shell: bash
+ # since "hashFiles" function differs on self-hosted vs GH-A machines
+ # make sure to cache the GH-A hashFiles result so that self-hosted can use it
- run: |
echo "${{ hashFiles('**/riscv-tools.hash') }}" > riscv-tools.hashFilesOutput
echo "${{ h... |
khan: unlink socket on close
Made URB_SOCK_PATH an array instead of pointer as well, to be able to
use sizeof. | c3_l sev_l; // instance number
} u3_khan;
-static const c3_c* const URB_SOCK_PATH = ".urb/khan.sock";
+static const c3_c URB_SOCK_PATH[] = ".urb/khan.sock";
/* _khan_io_talk(): notify %khan that we're live
*/
@@ -62,14 +62,23 @@ _khan_io_kick(u3_auto* car_u, u3_noun wir, u3_noun cad)
return ret_o;
}
-/* _khan_io_exit()... |
Preserve timestamps on header install | @@ -122,7 +122,7 @@ install-headers: $(EXTERNAL_HEADERS)
@mkdir -p "$(HEADERS_INSTALL_DIR)"; \
for file in $(EXTERNAL_HEADERS); do\
mkdir -p "$(HEADERS_INSTALL_DIR)/`dirname $${file#$(EXTERNAL_HEADERS_DIR)}`"; \
- install -m 644 $${file} "$(HEADERS_INSTALL_DIR)/$${file#$(EXTERNAL_HEADERS_DIR)}";\
+ install -p -m 644 $$... |
tools: ci: Fix testrun/utins/common.py for sabrelite (QEMU)
Summary:
I noticed that nuttx crashes if DEBUG_ASSERTIONS=y
This commit fixes this issue by changing QEMU options
Impact:
None
Testing:
Tested with QEMU | @@ -214,7 +214,7 @@ class start:
"bash",
[
"-c",
- "qemu-system-arm -M sabrelite -smp 1 -bios none -kernel ./nuttx -nographic | tee %s"
+ "qemu-system-arm -semihosting -M sabrelite -m 1024 -smp 4 -kernel ./nuttx -nographic | tee %s"
% self.log,
],
)
|
Fixed point needs a round() | /// We use fixed point representation of beat time and seconds time
/// Usage:
/// double x = ...; // in beats
-/// clap_beattime y = CLAP_BEATTIME_FACTOR * x;
+/// clap_beattime y = round(CLAP_BEATTIME_FACTOR * x);
// This will never change
static const CLAP_CONSTEXPR int64_t CLAP_BEATTIME_FACTOR = 1LL << 31;
|
integration: Add test for sigsnoop. | @@ -559,6 +559,33 @@ func TestSeccompadvisor(t *testing.T) {
runCommands(commands, t)
}
+func TestSigsnoop(t *testing.T) {
+ ns := generateTestNamespaceName("test-sigsnoop")
+
+ t.Parallel()
+
+ sigsnoopCmd := &command{
+ name: "Start sigsnoop gadget",
+ cmd: fmt.Sprintf("$KUBECTL_GADGET sigsnoop -n %s", ns),
+ expecte... |
interface: prevent crash in non-group workspace | @@ -26,6 +26,7 @@ import '~/views/apps/links/css/custom.css';
import '~/views/apps/publish/css/custom.css';
import { getGroupFromWorkspace } from '~/logic/lib/workspace';
import { GroupHome } from './Home/GroupHome';
+import { EmptyGroupHome } from './Home/EmptyGroupHome';
import { Workspace } from '~/types/workspace';... |
Xerces: Correct minor spelling mistake | @@ -89,7 +89,7 @@ void node2key (DOMNode const * n, Key const & parent, KeySet const & ks, Key & c
if (!ks.size ())
{ // we map the parent key to the xml root element
- // preserve the original name if its different
+ // preserve the original name if it is different
auto parentName = parent.rbegin ();
if (parentName !=... |
apps/btshell: Update conn-datalen params help to be more informative | @@ -2225,9 +2225,11 @@ cmd_conn_datalen(int argc, char **argv)
#if MYNEWT_VAL(SHELL_CMD_HELP)
static const struct shell_param conn_datalen_params[] = {
- {"conn", "conn_datalen handle, usage: =<UINT16>"},
- {"octets", "usage: =<UINT16>"},
- {"time", "usage: =<UINT16>"},
+ {"conn", "Connection handle, usage: =<UINT16>"}... |
chat: toggle code at start of input | @@ -2,6 +2,7 @@ import React, { Component } from 'react';
import _ from 'lodash';
import moment from 'moment';
import { UnControlled as CodeEditor } from 'react-codemirror2';
+import CodeMirror from 'codemirror';
import 'codemirror/mode/markdown/markdown';
import 'codemirror/addon/display/placeholder';
@@ -306,7 +307,9... |
build: generating multiple autotest runs in continuous integration | @@ -27,4 +27,5 @@ script:
- make examples
- make benchmark
- make xautotest
- - ./xautotest -R 0
+ - ./xautotest -R 0 # execute with a specific random seed
+ - ./xautotest # execute with a random seed based on time
|
refactor(memory check):
"tlsCAchain" should check non-null in BoatHlfabricTxExec() | @@ -105,6 +105,10 @@ __BOATSTATIC BOAT_RESULT BoatHlfabricTxExec(BoatHlfabricTx *tx_ptr,
((http2IntfContext*)(tx_ptr->wallet_ptr->http2Context_ptr))->hostName = nodeCfg.layoutCfg[i].groupCfg[j].endorser[k].hostName;
((http2IntfContext*)(tx_ptr->wallet_ptr->http2Context_ptr))->tlsCAchain = BoatMalloc(sizeof(BoatFieldVar... |
upgrade_tuple: fix isnull array deallocation
The values array was being double-freed, causing a crash. | @@ -931,7 +931,7 @@ upgrade_tuple(AppendOnlyExecutorReadBlock *executorReadBlock,
if (values)
pfree(values);
if (isnull)
- pfree(values);
+ pfree(isnull);
values = (Datum *) MemoryContextAlloc(TopMemoryContext, natts * sizeof(Datum));
isnull = (bool *) MemoryContextAlloc(TopMemoryContext, natts * sizeof(bool));
nalloca... |
[CHANGELOG] Release v0.5.0 | @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## Unreleased
+## 0.5.0 - 2022-08-03
+
### Added
- Add Halide runtime and build scripts for applications
- Add Halide example applications (2D convolution & matrix multiplication)
|
Fix Javascript binding. | @@ -523,7 +523,7 @@ EMSCRIPTEN_BINDINGS(tinyspline) {
.constructor<size_t>()
.constructor<size_t, size_t>()
.constructor<size_t, size_t, size_t>()
- .constructor<size_t, size_t, size_t, BSpline::type>()
+ .constructor<size_t, size_t, size_t, BSpline::Type>()
.class_function("interpolateCubicNatural",
&BSpline::interpol... |
acme: don't no-op for moons and comets | ^+ this
?: =(~ dom)
~|(%acme-empty-certificate-order !!)
- ?: ?=(?(%earl %pawn) (clan:title our.bow))
- this
=. ..emit (queue-next-order 1 | dom)
=. ..emit cancel-current-order
:: notify %dill
|
Increment version to 4.6.9. | #define MOD_WSGI_MAJORVERSION_NUMBER 4
#define MOD_WSGI_MINORVERSION_NUMBER 6
-#define MOD_WSGI_MICROVERSION_NUMBER 8
-#define MOD_WSGI_VERSION_STRING "4.6.8"
+#define MOD_WSGI_MICROVERSION_NUMBER 9
+#define MOD_WSGI_VERSION_STRING "4.6.9"
/* ------------------------------------------------------------------------- */
|
sysdeps/linux: Implement sys_madvise | @@ -597,6 +597,13 @@ int sys_getrusage(int scope, struct rusage *usage) {
return 0;
}
+int sys_madvise(void *addr, size_t length, int advice) {
+ auto ret = do_syscall(NR_madvise, addr, length, advice);
+ if (int e = sc_error(ret); e)
+ return e;
+ return 0;
+}
+
#endif // __MLIBC_POSIX_OPTION
pid_t sys_getpid() {
|
Increase timeout for stress-large tests | @@ -196,7 +196,7 @@ foreach p, p_params: programs
args: t_params['args'],
is_parallel: false,
suite: ['stress-large'],
- timeout: params.get('timeout', 3600),
+ timeout: params.get('timeout', 7200),
)
endforeach
|
zephyr: drop IS_ZEPHYR_VERSION macro
As noted in the bug, this macro is an antipattern. Drop it.
BRANCH=none
TEST=zmake testall | #include "common.h"
#include "system.h"
-#ifdef CONFIG_ZEPHYR
-#include "version.h"
-
-#define IS_ZEPHYR_VERSION(major, minor) \
- (KERNEL_VERSION_MAJOR == (major) && KERNEL_VERSION_MINOR == (minor))
-#else
-#define IS_ZEPHYR_VERSION(major, minor) false
-#endif /* CONFIG_ZEPHYR */
-
#define CROS_EC_IMAGE_DATA_COOKIE1 0... |
add default constructors to stl heap allocators | @@ -478,7 +478,7 @@ template<class T, bool destroy> struct _mi_heap_stl_allocator_common : public _m
using typename _mi_stl_allocator_common<T>::value_type;
using typename _mi_stl_allocator_common<T>::pointer;
- _mi_heap_stl_allocator_common(mi_heap_t* hp) : heap(hp) { } /* will not delete or destroy the passed in heap... |
Adds required linker options for the depenedency managet on OSX systems | @@ -21,14 +21,22 @@ target_include_directories(dependency_manager_static PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/api>
$<INSTALL_INTERFACE:include/celix/dependency_manager>
)
-target_link_libraries(dependency_manager_static PUBLIC Celix::framework)
+if (APPLE)
+ target_link_libraries(dependency_manager_static... |
added a view reset | @@ -965,6 +965,9 @@ avtH5PartFileFormat::SelectParticlesToRead( const char *varName )
{
int t1 = visitTimer->StartTimer();
+ // reset the view so all particles are considered.
+ H5PartSetView(file, -1, -1);
+
#ifdef HAVE_LIBFASTBIT
// Using FastBit with a query, re-run query if necessary.
if (useFastBitIndex && particl... |
Update the regression suite to git lfs pull the test baselines. | @@ -331,9 +331,13 @@ cat ../make.err >> ../../buildlog
echo "Source build completed at: \`date\`"
+# Update the test baselines
+cd ../test
+git lfs pull >> ../../../buildlog 2>&1
+
# Build the test data
cd ../data
-git lfs pull
+git lfs pull >> ../../../buildlog 2>&1
cd ../build
cd testdata
make -j 8 data >> ../../../b... |
Adapt the low-level correspondence SAW proof script to the new
LLVM-Crucible interface | import "spec/s2n_advance_message.cry";
-load_crucible_llvm_module "bitcode/all_llvm.bc";
+llvm <- llvm_load_module "bitcode/all_llvm.bc";
+//load_llvm_cfg llvm "s2n_advance_message";
+//load_llvm_cfg llvm "s2n_conn_set_handshake_type";
print "Loaded bitcode via Crucible";
///////////////////////////////////////////////... |
Fix previous commit (Move VirtualAddress check to PhGetMappedImageDataEntry) | @@ -515,7 +515,7 @@ NTSTATUS PhGetMappedImageDataEntry(
PIMAGE_OPTIONAL_HEADER32 optionalHeader;
PIMAGE_DATA_DIRECTORY dataDirectory;
- optionalHeader = &MappedImage->NtHeaders32->OptionalHeader;
+ optionalHeader = (PIMAGE_OPTIONAL_HEADER32)&MappedImage->NtHeaders32->OptionalHeader;
if (Index >= optionalHeader->NumberO... |
Fix dead assignment of Fvco in FPGA::SetPllFrequency | @@ -329,7 +329,6 @@ int FPGA::SetPllFrequency(const uint8_t pllIndex, const double inputFreq, FPGA_P
}
int N(0), M(0);
double bestDeviation = 1e9;
- double Fvco;
for(auto it : availableVCOs)
{
if(it.second == bestScore)
@@ -352,7 +351,6 @@ int FPGA::SetPllFrequency(const uint8_t pllIndex, const double inputFreq, FPGA_P... |
YANG parser BUGFIX processing block comments
Incorrect processing of **/ sequence terminating a comment. | @@ -342,7 +342,7 @@ skip_comment(struct lys_parser_ctx *ctx, const char **data, int comment)
case 3:
if (**data == '/') {
comment = 0;
- } else {
+ } else if (**data != '*') {
if (**data == '\n') {
++ctx->line;
}
|
Fix possible null pointer dereference in Log | @@ -903,7 +903,7 @@ BaseType_t xPublishToTopic( MQTTContext_t * pxMqttContext,
}
else
{
- LogInfo( ( "the published payload:%s \r\n ", pcPayload ) );
+ LogInfo( ( "the published payload:%.*s \r\n ", payloadLength, pcPayload ) );
/* This example publishes to only one topic and uses QOS1. */
outgoingPublishPackets[ ucPub... |
Update Changelog for 0.3.14 | OpenBLAS ChangeLog
+====================================================================
+Version 0.3.14
+ 17-Mar-2021
+
+ common:
+ * Fixed a race condition on thread shutdown in non-OpenMP builds
+ * Fixed custom BUFFERSIZE option getting ignored in gmake builds
+ * Fixed CMAKE compilation of the TRMM kernels for GEN... |
symtrack: running both BPSK and QPSK tests | @@ -30,7 +30,7 @@ void testbench_symtrack_cccf(unsigned int _k, unsigned int _m, float _beta, int
{
int ftype = LIQUID_FIRFILT_ARKAISER;
unsigned int num_symbols = 4000; // number of data symbols
- unsigned int hc_len = 4; // channel filter length
+ //unsigned int hc_len = 4; // channel filter length
float noise_floor ... |
sdl: gamecontroller.go: Change GameControllerMapping() into GameController.Mapping() | @@ -91,12 +91,6 @@ func GameControllerMappingForGUID(guid JoystickGUID) string {
return C.GoString(C.SDL_GameControllerMappingForGUID(guid.c()))
}
-// GameControllerMapping returns the current mapping of a Game Controller.
-// (https://wiki.libsdl.org/SDL_GameControllerMapping)
-func GameControllerMapping(ctrl *GameCon... |
fix Makefile resume build ethereum | @@ -6,9 +6,9 @@ BOAT_BUILD_DIR := $(BOAT_BASE_DIR)/build
# Set chain support
# Set to 1 to enable releated chain, to 0 to disable
-BOAT_PROTOCOL_USE_ETHEREUM ?= 0
-BOAT_PROTOCOL_USE_PLATONE ?= 0
-BOAT_PROTOCOL_USE_FISCOBCOS ?= 0
+BOAT_PROTOCOL_USE_ETHEREUM ?= 1
+BOAT_PROTOCOL_USE_PLATONE ?= 1
+BOAT_PROTOCOL_USE_FISCOBC... |
Remove BLASLONG casts from SPARC entries
in response to | @@ -2502,7 +2502,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define GEMM_DEFAULT_OFFSET_A 0
#define GEMM_DEFAULT_OFFSET_B 2048
-#define GEMM_DEFAULT_ALIGN (BLASLONG)0x03fffUL
+#define GEMM_DEFAULT_ALIGN 0x03fffUL
#define SGEMM_DEFAULT_UNROLL_M 2
#define SGEMM_DEFAULT_UNROLL_N 8
@@ -25... |
[external/error_report] Fix timestamp, use MONOTONIC instead of REALTIME
At present, error report module uses REALTIME clock for getting timestamps. The recorded values can be affected by a change of time base during runtime (on response from NTP server, for example). As a fix, we choose relative timestamps instead. | #include <stdio.h>
#include <stdlib.h>
#include <time.h>
+#include <tinyara/clock.h>
#include <pthread.h>
#include <unistd.h>
#include <libgen.h>
@@ -79,12 +80,23 @@ err_status_t error_report_deinit(void)
error_data_t *error_report_data_create(int module_id, int error_code, uint32_t pc_value)
{
+ error_data_t *ret = NU... |
Changed condition for skipping the script
as the travis caching always create the cached directories
we need to keep check on inner folder | @@ -50,7 +50,7 @@ fi
dependencies_dir=$OS_NAME"_dependencies"
#check for already downloaded files
-if [ -d "$dependencies_dir" ]; then
+if [ -d "$dependencies_dir/libodb-2.4.0" ]; then
echo "skipping odb installation: $dependencies_dir directory found:"
ls $dependencies_dir
exit
|
Remove extra flags | @@ -103,8 +103,8 @@ elseif(WIN32)
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} /Oxs /Oy /GS- /Qvec -Clang -O3")
endif()
else()
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wparentheses -Wundef -Wpointer-arith -Wstrict-aliasing=2")
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror=shadow -Werror=implicit-func... |
sysdeps/managarm: Convert sys_seteuid to bragi | @@ -432,37 +432,26 @@ uid_t sys_geteuid() {
int sys_seteuid(uid_t euid) {
SignalGuard sguard;
- HelAction actions[3];
- globalQueue.trim();
- managarm::posix::CntRequest<MemoryAllocator> req(getSysdepsAllocator());
- req.set_request_type(managarm::posix::CntReqType::SET_EUID);
- req.set_uid(euid);
+ managarm::posix::Se... |
common/charger.c: Format with clang-format
BRANCH=none
TEST=none | @@ -644,12 +644,16 @@ enum ec_error_list charger_set_hw_ramp(int enable)
if (enable) {
/* Check if this is the active chg chip. */
if (chgnum == charge_get_active_chg_chip())
- rv = chg_chips[chgnum].drv->set_hw_ramp(chgnum, 1);
- /* This is not the active chg chip, disable hw_ramp. */
+ rv = chg_chips[chgnum].drv->set... |
fix unproject's parameters | @@ -75,7 +75,7 @@ glm_unprojecti(mat4 invMat, vec4 vp, vec3 coord, vec4 dest) {
*/
CGLM_INLINE
void
-glm_unproject(mat4 m, vec2 vp, vec3 coord, vec3 dest) {
+glm_unproject(mat4 m, vec4 vp, vec3 coord, vec4 dest) {
mat4 inv;
glm_mat4_inv(m, inv);
glm_unprojecti(inv, vp, coord, dest);
|
Reduce -fastest quality level
IQ is still higher than 3.7, but this re-extends the range of
the cost-qiuality curve without any appreciable change in the
shape of the curve. | @@ -62,7 +62,7 @@ struct astcenc_preset_config
static const std::array<astcenc_preset_config, 5> preset_configs_high {{
{
ASTCENC_PRE_FASTEST,
- 2, 14, 44, 2, 2, 85.2f, 63.2f, 3.5f, 3.5f, 1.0f, 1.0f, 0.5f, 25
+ 2, 10, 42, 2, 2, 85.2f, 63.2f, 3.5f, 3.5f, 1.0f, 1.0f, 0.5f, 25
}, {
ASTCENC_PRE_FAST,
3, 14, 55, 3, 3, 85.2f... |
Check for null pointer passed to memcpy
This only happens when the size parameter is 0, in which memcpy will
not fail, but SonarCloud flags this as a problem: | @@ -56,7 +56,7 @@ exr_attr_opaquedata_create (
exr_result_t rv = exr_attr_opaquedata_init (ctxt, u, b);
if (rv == EXR_ERR_SUCCESS)
{
- if (d) memcpy ((void*) u->packed_data, d, b);
+ if (d && u->packed_data) memcpy ((void*) u->packed_data, d, b);
}
return rv;
|
Make test_alloc_set_foreign_dtd() robust vs allocation pattern changes | @@ -8943,19 +8943,9 @@ START_TEST(test_alloc_set_foreign_dtd)
"<doc>&entity;</doc>";
char text2[] = "<!ELEMENT doc (#PCDATA)*>";
int i;
-#define MAX_ALLOC_COUNT 10
- int repeat = 0;
+#define MAX_ALLOC_COUNT 25
for (i = 0; i < MAX_ALLOC_COUNT; i++) {
- /* Repeat some counts to deal with cached allocations */
- if (i == ... |
processmgr: fix ordering | @@ -9,6 +9,6 @@ modules:
nid: 0xEB1F8EF7
functions:
ksceKernelExitProcess: 0x905621F9
- ksceKernelLaunchApp: 0x68068618
ksceKernelGetProcessAuthid: 0x324F2B20
ksceKernelGetProcessKernelBuf: 0xD991C85E
+ ksceKernelLaunchApp: 0x68068618
|
brya: Configure chipset support
This enables additional chipset configurations for brya.
BRANCH=none
TEST=buildall passes | #define CONFIG_BOARD_VERSION_CBI
#define CONFIG_CRC8
-#define CONFIG_EXTPOWER_GPIO
-
/* Host communication */
#define CONFIG_HOSTCMD_ESPI
#define CONFIG_HOSTCMD_ESPI_VW_SLP_S4
/* Chipset config */
#define CONFIG_CHIPSET_ALDERLAKE_SLG4BD44540
+#define CONFIG_CHIPSET_RESET_HOOK
+#define CONFIG_CPU_PROCHOT_ACTIVE_LOW
+#de... |
Space at the beginning of sip: creates errors | @@ -168,7 +168,7 @@ static void menu_on_dial_history(GtkMenuItem *menuItem, gpointer arg)
if (!label_1)
return;
- label_1[0] = ' ';
+ label_1 = label_1 + 1;
uri = strtok(label_1, "]");
gtk_mod_connect(mod, uri);
|
OpenCanopy: Do not try to draw cursor when pointer control is disabled | @@ -883,7 +883,9 @@ GuiFlushScreen (
ASSERT (DrawContext != NULL);
ASSERT (DrawContext->Screen != NULL);
+ if (mPointerContext != NULL) {
GuiRedrawPointer (DrawContext);
+ }
NumValidDrawReqs = mNumValidDrawReqs;
ASSERT (NumValidDrawReqs <= ARRAY_SIZE (mDrawRequests));
|
common: Make it 1.0 beta + Update Copyrights | *
* Author: Robert Swiecki <swiecki@google.com>
*
- * Copyright 2010-2015 by Google Inc. All Rights Reserved.
+ * Copyright 2010-2017 by Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
... |
curve~: don't allow resize | @@ -236,6 +236,7 @@ static void curve_list(t_curve *x, t_symbol *s, int ac, t_atom *av)
odd = natoms % 3;
nsegs = natoms / 3;
if (odd) nsegs++;
+ /*
if (nsegs > x->x_size)
{
nsegs = CURVE_MAXSIZE;
@@ -250,6 +251,13 @@ static void curve_list(t_curve *x, t_symbol *s, int ac, t_atom *av)
odd = 0;
}
}
+ */
+ //clip at maxs... |
interop: Use --exit-on-all-streams-close | @@ -22,7 +22,7 @@ LOG=/logs/log.txt
if [ "$ROLE" == "client" ]; then
# Wait for the simulator to start up.
/wait-for-it.sh sim:57832 -s -t 30
- CLIENT_ARGS="server 443 --download /downloads -s --no-quic-dump --no-http-dump --timeout=5s --qlog-dir $QLOGDIR"
+ CLIENT_ARGS="server 443 --download /downloads -s --no-quic-du... |
Compile with warning_level=2 by default | project('scrcpy', 'c',
version: '1.11',
meson_version: '>= 0.37',
- default_options: 'c_std=c11')
+ default_options: [
+ 'c_std=c11',
+ 'warning_level=2',
+ ])
if get_option('compile_app')
subdir('app')
|
GRE: fix VRF unit-tests | @@ -768,17 +768,20 @@ class TestGRE(VppTestCase):
self.verify_decapped_4o4(self.pg0, rx, tx)
#
- # Send tunneled packets that match the created tunnel and
+ # Send tunneled packets that match the created tunnel
# but arrive on an interface that is not in the tunnel's
- # encap VRF, these are dropped
+ # encap VRF, thes... |
Allow osx failure in travis | @@ -58,6 +58,8 @@ matrix:
env: TESTS=sawHMACFailure SAW=true
#This exception is because the test isn't finished yet, remove to turn on DRBG Saw tests
- env: TESTS=sawDRBG SAW=true
+ allow_failures:
+ - os: osx
before_install:
# Install GCC 6 if on OSX
|
Fix encoder parameter suggestion
The option is --encoder, not --encoder-name. | @@ -230,7 +230,7 @@ public final class Server {
if (encoders != null && encoders.length > 0) {
Ln.e("Try to use one of the available encoders:");
for (MediaCodecInfo encoder : encoders) {
- Ln.e(" scrcpy --encoder-name '" + encoder.getName() + "'");
+ Ln.e(" scrcpy --encoder '" + encoder.getName() + "'");
}
}
}
|
travis: Print errors out for OSX job. | @@ -293,6 +293,8 @@ jobs:
- make ${MAKEOPTS} -C ports/unix deplibs
- make ${MAKEOPTS} -C ports/unix
- make ${MAKEOPTS} -C ports/unix test
+ after_failure:
+ - (cd tests && for exp in *.exp; do testbase=$(basename $exp .exp); echo -e "\nFAILURE $testbase"; diff -u $testbase.exp $testbase.out; done)
# windows port via mi... |
Fix button maps JSON schema validation for sengled | "enum": [
"BASIC",
"SCENES",
+ "SENGLED",
"ONOFF",
"LEVEL_CONTROL",
"MULTISTATE_INPUT",
"scene-commands": {
"enum": [ "ADD_SCENE", "VIEW_SCENE", "REMOVE_SCENE", "STORE_SCENE", "RECALL_SCENE", "IKEA_STEP_CT", "IKEA_MOVE_CT", "IKEA_STOP_CT" ]
},
+ "sengled-commands": {
+ "enum": [ "COMMAND_0" ]
+ },
"onoff-commands": {
"... |
Fixes
Otherwise the game keeps defaulting to Miles 2D | @@ -135,7 +135,7 @@ void OverwriteResolution()
if (!hbRsSelectDevice.fun)
hbRsSelectDevice.fun = injector::MakeCALL(ResolutionPattern0.count(1).get(0).get<uint32_t>(0), RsSelectDeviceHook2).get();
- injector::WriteMemory<uint8_t>(ResolutionPattern1.count(1).get(0).get<uint32_t>(2), 0x08, true);
+ injector::MakeNOP(Reso... |
Add community links.
[skip ci]
Closes | "letterboxing",
"LGUI",
"LIBDIR",
+ "Libera",
"libsdl",
"libtcod",
"libtcod's",
|
Fixed malformed conanfile.py.
Fix wrong indentation and case error. | @@ -163,7 +163,7 @@ class CelixConan(ConanFile):
if opt.startswith('build_'):
setattr(self.options, opt, True)
if not self.options.celix_cxx14:
- self.options.celix_cxx17 = false
+ self.options.celix_cxx17 = False
if not self.options.celix_cxx17:
self.options.build_cxx_remote_service_admin = False
self.options.build_pr... |
travis MAINTAINCE change the way of flag coverage propagation | @@ -85,9 +85,9 @@ jobs:
- wget https://ftp.pcre.org/pub/pcre/pcre2-10.30.tar.gz
- tar -xzf pcre2-10.30.tar.gz
- cd pcre2-10.30 && ./configure && make -j2 && sudo make install && cd ..
- - pip install --user codecov && export CFLAGS="-coverage"
+ - pip install --user codecov
script:
- - mkdir build && cd build && cmake ... |
docs - update email setup information.
change command that tests email notification to a psql command.
remove old example that uses gmail public SMTP server | @@ -260,31 +260,19 @@ gp_email_to='gpdb_dba_group@example.com'
<title id="kj168981">Testing Email Notifications</title>
<body>
<p>The Greenplum Database master host must be able to connect to the SMTP email server you
- specify for the gp_email_smtp_server<ph> parameter</ph>. To test connectivity, use the
- <codeph>pin... |
Readded NIDs to database | @@ -2103,7 +2103,10 @@ modules:
ksceKernelCpuIcacheInvalidateRange: 0xF4C7F578
ksceKernelCpuIcacheInvalidateAll: 0x264DA250
ksceKernelCpuIcacheAndL2WritebackInvalidateRange: 0x19F17BD0
+ ksceKernelCpuSaveContext: 0x211B89DA
+ ksceKernelCpuUnrestrictedMemcpy: 0x8C683DEC
ksceKernelCpuDcacheWritebackInvalidateRange: 0x6BA... |
[platform][stm32f4xx] append the necessary #define to GLOBAL_COMPILEFLAGS
GLOBAL_CFLAGS will only work for .c files, which breaks on the first
inclusion of the headers by a .cpp file. *_COMPILEFLAGS is for all
language types (C, asm, C++) | @@ -14,16 +14,16 @@ ARM_CPU := cortex-m4
# TODO: integrate better with platform/stm32f4xx/CMSIS/stm32f4xx.h
ifeq ($(STM32_CHIP),stm32f407)
-GLOBAL_CFLAGS=-DSTM32F40_41xxx=1
+GLOBAL_COMPILEFLAGS += -DSTM32F40_41xxx=1
FOUND_CHIP := true
endif
ifeq ($(STM32_CHIP),stm32f417)
FOUND_CHIP := true
-GLOBAL_CFLAGS=-DSTM32F40_41x... |
rename the key | # Local definition 43: Copernicus Arctic/European Regional ReAnalysis (CARRA/CERRA)
-codetable[2] carraSuiteName "grib2/carra_suiteName.table" : dump;
-alias mars.origin = carraSuiteName;
+codetable[2] suiteName "grib2/carra_suiteName.table" : dump;
+alias mars.origin = suiteName;
unalias mars.domain;
|
Docs - fix broken github link for gpfdist | @@ -319,7 +319,7 @@ This setting specifies how to handle standard error output from the transformati
## <a id="topic91"></a>XML Transformation Examples
-The following examples demonstrate the complete process for different types of XML data and STX transformations. Files and detailed instructions associated with these ... |
Fix debug/break search algorithm. | @@ -74,7 +74,8 @@ void janet_debug_find(
int32_t line = def->sourcemap[i].line;
int32_t column = def->sourcemap[i].column;
if (line <= sourceLine && line >= best_line) {
- if (column <= sourceColumn && column > best_column) {
+ if (column <= sourceColumn &&
+ (line > best_line || column > best_column)) {
best_line = li... |
Fix System.Math.Truncate | @@ -297,7 +297,7 @@ HRESULT Library_corlib_native_System_Math::Truncate___STATIC__R8__R8( CLR_RT_Sta
double res = 0.0;
double retVal = System::Math::Truncate(d, res);
- stack.SetResult_R8( res );
+ stack.SetResult_R8( retVal );
NANOCLR_NOCLEANUP_NOLABEL();
|
[MEMPOOL] Fix wrong recipeint check
recipients address can be contract address. | @@ -9,7 +9,6 @@ import (
"bufio"
"bytes"
"encoding/binary"
- "github.com/btcsuite/btcd/btcec"
"io"
"math/big"
"os"
@@ -577,8 +576,7 @@ func (mp *MemPool) validateTx(tx types.Transaction, account types.Address) error
if tx.GetTx().HasNameRecipient() || types.IsSpecialAccount(recipient) {
// it will search account direct... |
ipsec: Tunnelled packets are locally generated
Type: fix
this means we 1) don't decrement TTL and (for v6) can fragment. | @@ -779,6 +779,7 @@ esp_encrypt_inline (vlib_main_t *vm, vlib_node_runtime_t *node,
len = payload_len_total + hdr_len - len;
ip6->payload_length = clib_net_to_host_u16 (len);
+ b[0]->flags |= VNET_BUFFER_F_LOCALLY_ORIGINATED;
}
else
{
|
hoon: lob/rob to kel/ker | ;~ pose
;~(pfix bas ;~(pose (mask "-+*%;\{") bas doq bix:ab))
inline-embed
- ;~(less bas lob ?:(in-tall-form fail doq) prn)
+ ;~(less bas kel ?:(in-tall-form fail doq) prn)
?:(lin fail ;~(less (jest '\0a"""') (just '\0a')))
==
::
++ bracketed-elem :: bracketed element
- %+ ifix [lob rob]
+ %+ ifix [kel ker]
;~(plug tag... |
Fix LocalTime time zone offset format.
ISO8601 defines basic datetime format YYYYMMDDThhmmss+hhmm and extended format
YYYY-MM-DDThh:mm:ss+hh:mm. The current PrintableLocalTime is a mix of both.
This also makes the format satisfy the stricter RFC3339.
There is no test because it depends on the local time zone. | @@ -99,7 +99,7 @@ namespace {
template <bool PrintUpToSeconds>
void WritePrintableLocalTimeToStream(IOutputStream& os, const ::NPrivate::TPrintableLocalTime<PrintUpToSeconds>& timeToPrint) {
- const auto& momentToPrint = timeToPrint.MomentToPrint;
+ const TInstant& momentToPrint = timeToPrint.MomentToPrint;
struct tm l... |
Algorithm: Fix minor spelling mistakes | @@ -40,7 +40,7 @@ separated from the filtering of the backends for every specific `kdbGet()`
and `kdbSet()` request.
Afterwards the key hierarchy is static. Every application using Elektra
-will build up the same key database. Application specific mountpoints
+will build up the same key database. Application-specific m... |
netutils: correct iperf thread name | * Included Files
****************************************************************************/
+#include <sys/prctl.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <net/if.h>
@@ -234,6 +235,8 @@ static void iperf_report_task(void *arg)
uintmax_t now_len;
int ret;
+ prctl(PR_SET_NAME, IPERF_REPORT_TASK_NAME);
... |
Update macOS documentation to source SDL2 and SDL2_Image from homebrew | @@ -52,17 +52,10 @@ If you want to run code on 32Blit, you should now refer to [Building & Running O
## Building & Running Locally
-You'll need to build and install SDL2:
+You'll need to install `SDL2` and `SDL2 Image`
``` shell
-curl https://www.libsdl.org/release/SDL2-2.0.10.zip -o SDL2-2.0.10.zip
-unzip SDL2-2.0.10.... |
docs(discord.h): document threadpool and move example code to orca-docs cee-utils/orca-docs@cc0a0b40487c6596d109383c21588eb0f92ae3ba | @@ -394,60 +394,16 @@ enum discord_event_scheduler {
/** handle this event in a worker thread */
DISCORD_EVENT_WORKER_THREAD
};
+
/**
- * @brief Specify how events should execute their callbacks, in a blocking or
- * non-blocking fashion
- *
- * This is a very important function that provides the user a more fine-grain... |
openwsman: fix memory cleanup
Fix order of parameters passed to memset. | @@ -54,7 +54,7 @@ void u_cleanfree(char *ptr)
{
if (!ptr)
return;
- memset_func(ptr, strlen(ptr) * sizeof(char), 0);
+ memset_func(ptr, 0, strlen(ptr) * sizeof(char));
free(ptr);
}
@@ -63,7 +63,7 @@ void u_cleanfreew(wchar_t *ptr)
{
if (!ptr)
return;
- memset_func(ptr, wcslen(ptr) * sizeof(wchar_t), 0);
+ memset_func(p... |
clipped mass boundaries | @@ -20,13 +20,10 @@ H100 = COSMO["h"]
Z = np.array([0.0, 0.5, 1.0, 2.0, 3.0, 4.0, 5.0, 7.0])
# All parametrizations are accurate at to 5% except (500, Vmax, relaxed)
-# for which the model is accurate to 10%, so we choose this value
-# for max data scatter.
-UCHUU_DATA_SCATTER = 0.1
-
-# mass bounds in CCL's HM Calcula... |
excluded .tmp | @@ -17,7 +17,7 @@ if errorlevel 1 (
rem Creating archives
FOR /d %%X IN (*) DO (
-7za a -tzip "Archives\%%X.zip" "%%X\" -r -xr^^!Archives -x^^!*.pdb -x^^!*.db -x^^!*.ipdb -x^^!*.iobj
+7za a -tzip "Archives\%%X.zip" "%%X\" -r -xr^^!Archives -x^^!*.pdb -x^^!*.db -x^^!*.ipdb -x^^!*.iobj -x^^!*.tmp
)
EXIT
|
Forgot one prototype | #include <stdio.h>
#include "init.h"
//----------------------------------------------------------------------------
+void LogPrintf_NoPrefix(const char *fmt,...);
void LogFPrintf(FILE *fp,const char *fmt,...);
void LogPrintf(const char *fmt,...);
//-----------------------------------------------------------------------... |
[examples] fix NE_3DS_3Knee_1Prism_MLCP_MoreauJeanCombinedProjection | @@ -276,7 +276,7 @@ int main(int argc, char* argv[])
// H4->zero();
SP::SiconosVector axe1(new SiconosVector(3));
axe1->zero();
- axe1->setValue(2, 1);
+ axe1->setValue(0, 1);
SP::PrismaticJointR relation4(new PrismaticJointR(beam3, axe1));
// relation1->setJachq(H1); // Remark V.A. Why do we need to set the Jacobian o... |
Travis: Use `-Werror` compiler flag again | @@ -190,7 +190,6 @@ matrix:
env:
# Unfortunately the tests for the Xerces plugin fail: https://travis-ci.org/ElektraInitiative/libelektra/jobs/483331657#L3740
- PLUGINS='ALL;-xerces'
- - COMMON_FLAGS=''
# HASKELL: Only build Haskell binding and plugin
|
Fix build error in cli | @@ -69,7 +69,7 @@ int main(int argc, char** argv) {
}
Field field;
- field_init(&field);
+ gfield_init(&field);
Field_load_error fle = field_load_file(input_file, &field);
if (fle != Field_load_error_ok) {
field_deinit(&field);
|
Use allow_early_data_cb from SSL instead of SSL_CTX | @@ -1645,9 +1645,9 @@ static int final_early_data(SSL *s, unsigned int context, int sent)
|| s->early_data_state != SSL_EARLY_DATA_ACCEPTING
|| !s->ext.early_data_ok
|| s->hello_retry_request != SSL_HRR_NONE
- || (s->ctx->allow_early_data_cb != NULL
- && !s->ctx->allow_early_data_cb(s,
- s->ctx->allow_early_data_cb_dat... |
modify FindPythonPackage to use Python found
* modify FindPythonPackage to use Python found
Add find_package(PythonInter...) to the beginning of the file
(outside of the macro) so that cmake finds the Python 2.7 interpreter
and uses it when checking for existence of a module. | # FATAL_ERROR = CMake Error, stop processing and generation
#
+if (NOT PYTHON_EXECUTABLE)
+ find_package(PythonInterp 2.7 REQUIRED)
+endif (NOT PYTHON_EXECUTABLE)
+
macro(FIND_PYTHON_PKG PKG_NAME ERR_LEVEL )
- execute_process( COMMAND python -c "import ${PKG_NAME}" ERROR_QUIET RESULT_VARIABLE STATUS_FLAG)
+ execute_pro... |
Return NULL for empty listbox strings | @@ -525,7 +525,7 @@ PPH_STRING PhGetListBoxString(
if (length == LB_ERR)
return NULL;
if (length == 0)
- return PhReferenceEmptyString();
+ return NULL;
string = PhCreateStringEx(NULL, length * sizeof(WCHAR));
|
Add test to ensure a hash collision while expanding hash table
This is purely an exercise in code coverage; there is no user-level
way of telling that the hash table has been expanded or that a
collision occurred. | @@ -4619,6 +4619,35 @@ START_TEST(test_partial_char_in_epilog)
}
END_TEST
+START_TEST(test_hash_collision)
+{
+ /* For full coverage of the lookup routine, we need to ensure a
+ * hash collision even though we can only tell that we have one
+ * through breakpoint debugging or coverage statistics. The
+ * following will... |
[core] fix lighttpd -1 one-shot with pipes | @@ -356,7 +356,7 @@ static int server_oneshot_read_cq(connection *con, chunkqueue *cq, off_t max_byt
/* temporary set con->fd to oneshot_fd (fd input) rather than outshot_fdout
* (lighttpd generally assumes operation on sockets, so this is a kludge) */
int fd = con->fd;
- con->fd = oneshot_fd;
+ con->fd = oneshot_fdn->... |
updating README and removing out-of-date README-vis (current info is on webpage) | @@ -6,6 +6,8 @@ You may find the now-deprecated version at the [ROSS-Legacy tag](https://github.
Using this repository you can compare files from the new `ROSS/core` to `ROSS/ross`.
For a detailed list of changes between old ROSS and SR please visit [the wiki](https://github.com/ROSS-org/ROSS/wiki/Differences-between-S... |
optimize w/wo SYSMSG mode | @@ -1134,14 +1134,18 @@ espi_get_reset_sub_cmd(esp_msg_t* msg, uint8_t is_ok, uint8_t is_error, uint8_t
break;
}
case ESP_CMD_WIFI_CWMODE: {
- n_cmd = ESP_CMD_SYSMSG; /* Set Wifi mode */
+ n_cmd = ESP_CMD_SYSMSG_CUR; /* Set system messages */
break;
}
- case ESP_CMD_SYSMSG: {
- n_cmd = ESP_CMD_SYSMSG_CUR; /* Set multip... |
Improved rendering of %exp speeches in talk-agent. | url+(crip (apix:en-purl:html url.sep))
::
$exp
- tan+~[rose+[" " ~ ~]^[leaf+"# {(trip exp.sep)}" res.sep]]
+ mor+~[txt+"# {(trip exp.sep)}" tan+res.sep]
::
$ire
=+ gam=(recall top.sep)
==
::
$exp
- ::TODO print truncated res on its own line.
- :_ ~
- (tr-chow wyd '#' ' ' (trip exp.sep))
+ :- (tr-chow wyd '#' ' ' (trip ... |
Improvements in UpdateAdapterConfiguration
Rework DHCP flags and APl calls
Remove call to generate managed event (was generating a duplicate event ) | @@ -833,8 +833,7 @@ HRESULT LWIP_SOCKETS_Driver::UpdateAdapterConfiguration( uint32_t interfaceIndex
{
NATIVE_PROFILE_PAL_NETWORK();
- bool fEnableDhcp = (config->StartupAddressMode == AddressMode_DHCP);
- bool fDhcpStarted;
+ bool enableDHCP = (config->StartupAddressMode == AddressMode_DHCP);
struct netif *pNetIf = ne... |
Improve node port test for checking correct results and avoid false positives. | @@ -61,7 +61,8 @@ TEST_F(metacall_node_port_test, DefaultConstructor)
void * future = metacall_await("main", metacall_null_args, [](void * v, void * data) -> void * {
struct await_data_type * await_data = static_cast<struct await_data_type *>(data);
std::unique_lock<std::mutex> lock(await_data->m);
- EXPECT_EQ((int) 0,... |
Definitions: latest limits from Gabor | -constant default_min_val = -1e9 : double_type, hidden;
+constant default_min_val = -1e13 : double_type, hidden;
constant default_max_val = +1e13 : double_type, hidden;
concept param_value_min(default_min_val) {
@@ -104,7 +104,7 @@ concept param_value_max(default_max_val) {
1500 = { paramId=151163; }
3.5 = { paramId=15... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.