message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
doc: fix description of PROVIDE NFT INFORMATION | @@ -251,9 +251,9 @@ This commands provides a trusted description of an NFT to associate a contract a
It shall be run immediately before performing a transaction involving a contract calling this contract address to display the proper nft information to the user if necessary, as marked in GET APP CONFIGURATION flags.
-T... |
distro-packages/python-rpm-macros: add more centos flavor | ### flavor-specific: generate from flavor.in
+--- a/functions.lua 2017-12-07 11:46:04.000000000 -0800
++++ b/functions.lua 2017-12-08 09:44:39.000000000 -0800
+@@ -27,7 +27,7 @@
+ python = "py",
+ -- ??
+ python2 = "py2",
+- python3 = "py3",
++ python34 = "py3",
+ pypy = "pypy",
+ }
+
+--- a/macros/010-common-defs 2017... |
out_splunk: do not force TLS, remove test line | @@ -52,8 +52,6 @@ struct flb_splunk *flb_splunk_conf_create(struct flb_output_instance *ins,
io_flags = FLB_IO_TCP;
}
- io_flags = FLB_IO_TLS;
-
if (ins->host.ipv6 == FLB_TRUE) {
io_flags |= FLB_IO_IPV6;
}
|
Try to fix pylint import in Codacy
[ci skip] | # Python code to execute, usually for sys.path manipulation such as
# pygtk.require().
-#init-hook=
+init-hook='import sys; sys.path.append("tests/")'
# Add files or directories to the blacklist. They should be base names, not
# paths.
|
Update target page url of MtConnect04S | @@ -29,4 +29,4 @@ const char daplink_url_name[11] = "HELP HTM";
__attribute__((aligned(4)))
const char daplink_drive_name[11] = "MTCONNEC04S";
__attribute__((aligned(4)))
-const char *const daplink_target_url = "https://blog.mtmtech.com.tw/mtconnect04s/";
+const char *const daplink_target_url = "https://developer.mbed.... |
refine stat output with new SI units | @@ -133,7 +133,7 @@ static void mi_stats_add(mi_stats_t* stats, const mi_stats_t* src) {
// unit == 0: count as decimal
// unit < 0 : count in binary
static void mi_printf_amount(int64_t n, int64_t unit, mi_output_fun* out, void* arg, const char* fmt) {
- char buf[32];
+ char buf[32]; buf[0] = 0;
int len = 32;
const ch... |
cycle~: changing phase arg overwriting to every block | @@ -246,9 +246,7 @@ static t_int *cycle_perform(t_int *w)
*out++ = (t_float) (df1 + frac * (df2 - df1));
}
dphase += freq * conv ;
- //overwrite phase arg
- pd_float((t_pd *)x->x_phaselet, phasein);
- }
+ };
if (dphase>=1.)
{
@@ -262,6 +260,8 @@ static t_int *cycle_perform(t_int *w)
dphase -= intphase;
}
x->x_phase = d... |
webp-lossless-bitstream-spec: fix TR-pixel right border note
the value of the TR-pixel on the right border is the leftmost pixel on
the current row, not the previous one | @@ -369,9 +369,8 @@ pixels on the leftmost column.
Addressing the TR-pixel for pixels on the rightmost column is
exceptional. The pixels on the rightmost column are predicted by using
-the modes \[0..13\] just like pixels not on border, but by using the
-leftmost pixel on the same row as the current TR-pixel. The TR-pi... |
in_tail: update query | " rotated INTEGER DEFAULT 0" \
");"
-#define SQL_GET_FILE "SELECT * from in_tail_files WHERE name='%s'" \
- " AND inode=%"PRIu64";"
+#define SQL_GET_FILE "SELECT * from in_tail_files WHERE inode=%"PRIu64";"
#define SQL_INSERT_FILE \
"INSERT INTO in_tail_files (name, offset, inode, created)" \
" VALUES ('%s', %"PRIu64",... |
Test deploy of haskell tools | @@ -52,10 +52,12 @@ matrix:
sudo apt-get update
sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce
script: |
- cd haskell
+ pushd haskell
docker build -t sbp2json .
docker run --rm --name sbp2json sbp2json >sbp_linux_tools.tar
gzip sbp_linux_tools.tar
+ ls -l
+ popd
deploy:
provider: releases
|
freertos: add parameter validation checks in xTaskCreateStaticPinnedToCore
Regression from commit-id | @@ -637,8 +637,9 @@ void taskYIELD_OTHER_CORE( BaseType_t xCoreID, UBaseType_t uxPriority )
TCB_t *pxNewTCB;
TaskHandle_t xReturn;
- configASSERT( pxStackBuffer != NULL );
- configASSERT( pxTaskBuffer != NULL );
+ configASSERT( portVALID_TCB_MEM(pxTaskBuffer) );
+ configASSERT( portVALID_STACK_MEM(pxStackBuffer) );
+ c... |
usrsock_server: fix unblock socket connect error | @@ -178,7 +178,7 @@ static int usrsock_rpmsg_send_ack(struct rpmsg_endpoint *ept,
ack.head.events = events;
ack.xid = xid;
- ack.result = result;
+ ack.result = result == -EINPROGRESS ? 0 : result;
return rpmsg_send(ept, &ack, sizeof(ack));
}
@@ -317,14 +317,15 @@ static int usrsock_rpmsg_connect_handler(struct rpmsg_e... |
Turn on HTTP in ESP32 | @@ -355,14 +355,21 @@ class OtaAfrProject:
def setHTTPConfig(self):
"""Set necessary configs for enabling OTA over HTTP
"""
- # This is to disable BLE as we don't have enough memory.
if 'esp32' in self._board_name:
+ # This is to disable BLE as we don't have enough memory.
self.__setIdentifierInFile(
{
'#define configE... |
Fix Makefile bug w/ BREAK_SIM_PREREQ | @@ -196,7 +196,7 @@ endif
ifeq (,$(BREAK_SIM_PREREQ))
SIM_PREREQ = $(sim)
SIM_DEBUG_PREREQ = $(sim_debug)
-else
+endif
# run normal binary with hardware-logged insn dissassembly
run-binary: $(output_dir) $(SIM_PREREQ) check-binary
|
adding logic to post failed .txt files too so they can be easily re-based | @@ -1754,6 +1754,10 @@ def CheckInteractive(case_name):
#
# Mark C. Miller, Wed Jul 9 18:43:41 PDT 2014
# Added setFailed and setSkipped args for caller to control these
+#
+# Mark C. Miller, Thu Jun 28 18:37:31 PDT 2018
+# Added logic to copy current file to "html" dir so it gets posted with
+# results so it can be mo... |
[chainmaker]get_invoke_para function | @@ -81,7 +81,29 @@ void chainmaker_set_node_info(BoatChainmakerNode *node)
node->useTLS = TRUE;
node->connCnt = 10;
}
-
+BoatTransactionPara get_invoke_para()
+{
+ //randrom generate
+ BoatFieldMax16B random_data;
+ random_data.field_len = 16;
+ BoatRandom(random_data.field, random_data.field_len, NULL);
+
+ get_time_s... |
Tidy up UBSan detection | @@ -78,12 +78,17 @@ extern void (*mbedtls_test_hook_test_fail)( const char * test, int line, const c
*
* This list is incomplete.
*/
+#if defined(__has_feature)
+#if __has_feature(undefined_behavior_sanitizer)
+#define MBEDTLS_HAVE_UBSAN
+#endif
+#endif
+
#if (defined(__i386__) || defined(__amd64__) || defined( __x86_6... |
Cr50: Fix _plat__StartupCallback()
In C, one needs to explicitly say that a function takes no
parameters (we use -Werror=strict-prototypes so this throws
an error).
BRANCH=none
TEST=make BOARD=cr50 -j | @@ -63,7 +63,7 @@ void _plat__GetFwVersion(uint32_t *firmwareV1, uint32_t *firmwareV2)
*firmwareV2 = strtoi(ver_str, NULL, 16);
}
-void _plat__StartupCallback()
+void _plat__StartupCallback(void)
{
pinweaver_init();
|
Fix backup labels in mock/all resume integration tests.
These were not getting updated to match the directory name when the manifests were copied.
The Perl code didn't care but the C code expects labels to be set correctly. | @@ -440,8 +440,9 @@ sub run
# Resume by copying the valid full backup over the last aborted full backup if it exists, or by creating a new path
my $strResumeBackup = (storageRepo()->list(
STORAGE_REPO_BACKUP, {strExpression => backupRegExpGet(true, true, true), strSortOrder => 'reverse'}))[0];
- my $strResumePath = sto... |
[CHAIN] fix minor typo (block already exist) | @@ -35,8 +35,8 @@ var (
dfltErrBlocks = 128
- ErrBlockExist = errors.New("block already exist")
- ErrNotSupportedConsensus = errors.New("nor supported by this consensus")
+ ErrBlockExist = errors.New("block already exists")
+ ErrNotSupportedConsensus = errors.New("not supported by this consensus")
)
// Core represents ... |
Clarify the usage of last_error in YR_MEMORY_BLOCK_ITERATOR. | @@ -694,7 +694,9 @@ struct YR_MEMORY_BLOCK_ITERATOR
// Error occurred during the last call to "first" or "next" functions. These
// functions must set the value of last_error to ERROR_SUCCESS or to some
- // other error code if appropriate.
+ // other error code if appropriate. Alternatively, last_error can be set to
+... |
add a gpio for testing serial bootloader with nrf52dk. | #include <inttypes.h>
+#include <syscfg/syscfg.h>
+
#ifdef __cplusplus
extern "C" {
#endif
@@ -44,6 +46,12 @@ extern uint8_t _ram_start;
/* UART info */
#define CONSOLE_UART "uart0"
+#if MYNEWT_VAL(BOOT_SERIAL)
+#define BOOT_SERIAL_DETECT_PIN 13 /* Button 1 */
+#define BOOT_SERIAL_DETECT_PIN_CFG HAL_GPIO_PULL_UP
+#defi... |
Set default hints for ranking metrics | @@ -2447,7 +2447,8 @@ TVector<TParamSet> TPFoundMetric::ValidParamSets() {
TParamSet{
{
TParamInfo{"use_weights", false, true},
- TParamInfo{"decay", false, DefaultDecay}
+ TParamInfo{"decay", false, DefaultDecay},
+ TParamInfo{"hints", false, "skip_train~true"}
},
""
}
@@ -2500,7 +2501,8 @@ TVector<TParamSet> TDcgMetr... |
Use correct origin type for fake headset; | @@ -260,6 +260,7 @@ static void fakeDestroy() {
}
static void fakePoll() {
+ //
}
static bool fakeIsPresent() {
@@ -271,15 +272,15 @@ static HeadsetType fakeGetType() {
}
static HeadsetOrigin fakeGetOriginType() {
- //return ORIGIN_HEAD; // seated
- return ORIGIN_FLOOR; // standing
+ return ORIGIN_HEAD;
}
static bool f... |
better backwards compatibility for moba | @@ -219,6 +219,9 @@ int main_moba(int argc, char* argv[argc])
debug_printf(DP_INFO, "Est. image size: %ld %ld %ld\n", img_vec[0], img_vec[1], img_vec[2]);
}
+
+ if (!use_compat_to_version("v0.7.00")) {
+
md_zsmul(DIMS, traj_dims, traj, traj, 2.);
NESTED(long, dbl, (long x)) { return (x > 1) ? (2 * x) : 1; };
@@ -227,7 ... |
add buffer size validation to FastHuf decode | @@ -1119,6 +1119,14 @@ hufUncompress (const char compressed[],
if (FastHufDecoder::enabled() && nBits > 128)
{
FastHufDecoder fhd (ptr, nCompressed - (ptr - compressed), im, iM, iM);
+
+ // must be nBytes remaining in buffer
+ if( ptr-compressed + nBytes > nCompressed)
+ {
+ notEnoughData();
+ return;
+ }
+
fhd.decode ... |
in_exec: log with the plugin context. | @@ -158,19 +158,19 @@ static int in_exec_config_read(struct flb_exec *ctx,
/* filepath setting */
if (ctx->cmd == NULL) {
- flb_error("[in_exec] no input 'command' was given");
+ flb_plg_error(in, "no input 'command' was given");
return -1;
}
if (ctx->parser_name != NULL) {
ctx->parser = flb_parser_get(ctx->parser_name... |
Fix CID 168564. | @@ -13320,7 +13320,6 @@ sctp_copy_it_in(struct sctp_tcb *stcb,
resv_in_first = SCTP_DATA_CHUNK_OVERHEAD(stcb);
sp->data = sp->tail_mbuf = NULL;
if (sp->length == 0) {
- *error = 0;
goto skip_copy;
}
if (srcv->sinfo_keynumber_valid) {
@@ -14204,7 +14203,7 @@ skip_preblock:
if (strm->last_msg_incomplete == 0) {
do_a_copy... |
Correct extension feature listing for OpenGL ES | @@ -417,8 +417,8 @@ Khronos extensions
Official Khronos extensions exist for the feature profiles of ASTC:
* [KHR_texture_compression_astc_ldr][astc_ldr]: 2D LDR support
-* [KHR_texture_compression_astc_hdr][astc_ldr]: 2D LDR + HDR support
-* [KHR_texture_compression_astc_sliced_3d][astc_3d]: 3D LDR + HDR support
+* [K... |
VPP crashes when deleting an ARP entry
When attempting to delete an ARP entry on an interface
that hasn't had any ARP entries added yet, VPP was
retrieving an array element at an index that was out of
bounds and trying to dereference it. | @@ -1635,6 +1635,9 @@ vnet_arp_unset_ip4_over_ethernet_internal (vnet_main_t * vnm,
ethernet_arp_ip4_entry_t *e;
ethernet_arp_interface_t *eai;
+ if (vec_len (am->ethernet_arp_by_sw_if_index) <= args->sw_if_index)
+ return 0;
+
eai = &am->ethernet_arp_by_sw_if_index[args->sw_if_index];
e = arp_entry_find (eai, &args->a... |
[GB] Implement DAA instruction | @@ -1273,6 +1273,36 @@ impl CpuState {
self.set_flags(result == 0, false, false, false);
Some(InstrInfo::seq(2, 2))
}
+ 0x27 => {
+ // DAA
+ // Ref: https://www.reddit.com/r/EmuDev/comments/4ycoix/a_guide_to_the_gameboys_halfcarry_flag/
+ if debug {
+ println!("DAA");
+ }
+
+ let mut u = 0;
+ let mut ra = self.reg(Regi... |
Update inpfile.c
Testing linux build | @@ -152,10 +152,10 @@ void write_demands(Project *pr, FILE *f) {
fprintf(f, "\n%s %-31s", s, s1);
- if (temp = get_category_name(lnode)) {
- fprintf(f, " ;%s", temp);
- free(temp);
- }
+ //if (temp = get_category_name(lnode)) {
+ // fprintf(f, " ;%s", temp);
+ // free(temp);
+ //}
}
}
}
|
Define the proper typedef for CGPatternRef. The current definition defines it as void *,
it should be struct __CGPattern* | #import <CoreGraphics/CoreGraphicsExport.h>
-// TODO: CGPattern is currently an Objective-C object;
-// it cannot be defined as struct __CGPattern*.
-typedef void* CGPatternRef;
+typedef struct __CGPattern* CGPatternRef;
#import <CoreGraphics/CGContext.h>
#import <CoreGraphics/CGAffineTransform.h>
|
ExtendedServices: Improve string typedef usage | @@ -1162,7 +1162,7 @@ PPH_STRING EspConvertNewLinesToNulls(
SIZE_T count;
SIZE_T i;
- text = PhCreateStringEx(NULL, String->Length + 2); // plus one character for an extra null terminator (see below)
+ text = PhCreateStringEx(NULL, String->Length + sizeof(UNICODE_NULL)); // plus one character for an extra null terminat... |
h2olog: force to triger regen.mk command since dependencies are managed in the makefile | @@ -939,10 +939,15 @@ IF (WITH_H2OLOG)
"include/h2o/version.h"
)
+ # This phony target is required to force to trigger a custom command.
+ # If DEPENDS is empty, the custom command won't be triggered when OUTPUT files exist.
+ ADD_CUSTOM_TARGET(phony_force_trigger_command COMMAND echo -n)
+
ADD_CUSTOM_COMMAND(
OUTPUT "... |
Fix modules tab not showing signatures for mapped images when they're actually signed (reported by Zorkov Igor) | @@ -535,8 +535,6 @@ VOID PhModuleProviderUpdate(
moduleItem->FileEndOfFile.QuadPart = -1;
}
- if (moduleItem->Type == PH_MODULE_TYPE_MODULE || moduleItem->Type == PH_MODULE_TYPE_KERNEL_MODULE ||
- moduleItem->Type == PH_MODULE_TYPE_WOW64_MODULE || moduleItem->Type == PH_MODULE_TYPE_MAPPED_IMAGE)
{
// See if the file ha... |
Copy sjlj exception model for mingw32. | @@ -479,8 +479,16 @@ if(TINYSPLINE_RUNTIME_LIBRARIES STREQUAL "")
list(APPEND
CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS
"${basedir}/libstdc++-6.dll"
- "${basedir}/libgcc_s_seh-1.dll"
"${basedir}/libwinpthread-1.dll")
+ if(TINYSPLINE_PLATFORM_ARCH STREQUAL "x86")
+ list(APPEND
+ CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS
+ "${basedir}/l... |
Added my name to the list
I added my name to the list. | @@ -44,6 +44,7 @@ Kirkby,David,"David Kirkby",Contributor,"Department of Physics and Astronomy, Un
Krause,Elisabeth,"Elisabeth Krause",Contributor,"Kavli Institute for Particle Astrophysics and Cosmology, Stanford, CA 94305-4085, USA", "Initiated and co-led project; developed CLASS interface and error handling; contrib... |
Colorize ydlc output | @@ -2572,7 +2572,7 @@ macro _SRC("supp", SRC, SRCFLAGS...) {
}
macro _SRC("ydl", SRC, SRCFLAGS...) {
- .CMD=${tool:"statbox/ydl/tooling/ydlc/bin"} -I ${ARCADIA_ROOT} --cpp-output-header ${output;suf=.h:SRC} --cpp-output-source ${output;suf=.cpp:SRC} ${input:SRC}
+ .CMD=${tool:"statbox/ydl/tooling/ydlc/bin"} --tty-color... |
http_client: remove ability to see HTTP request for non-dev env | @@ -1152,7 +1152,6 @@ int flb_http_do(struct flb_http_client *c, size_t *bytes)
}
#endif
- flb_debug("[http_client] header=%s", c->header_buf);
/* Write the header */
ret = flb_io_net_write(c->u_conn,
c->header_buf, c->header_len,
|
Silo Improvements on Client Side | @@ -2480,6 +2480,7 @@ QuicConnSetConfiguration(
Configuration);
QuicConfigurationAddRef(Configuration);
+ QuicConfigurationAttachSilo(Configuration);
Connection->Configuration = Configuration;
QuicConnApplyNewSettings(
Connection,
@@ -2497,7 +2498,7 @@ QuicConnSetConfiguration(
QuicConnOnQuicVersionSet(Connection);
Sta... |
Fix logic errors with BUILD_DWALOOKUPS | @@ -52,6 +52,8 @@ if (NOT EXISTS "${CMAKE_CURRENT_BINARY_DIR}/dwaLookups.h")
dwaLookups.cpp
)
+ SET(BUILD_DWALOOKUPS ON)
+
SET_ILMBASE_INCLUDE_DIRS(dwaLookups)
IF (WIN32)
@@ -176,7 +178,7 @@ IF (BUILD_B44EXPLOGTABLE)
)
ENDIF ()
-iF (BUILD_DWALOOKUPS)
+IF (BUILD_DWALOOKUPS)
SET_SOURCE_FILES_PROPERTIES (
ImfDwaCompressor... |
Remove function `throwTopMessageAsError'`
It was neither useful nor used anywhere. | @@ -261,7 +261,6 @@ module Foreign.Lua.Core (
, tryLua
-- * Helper functions
, throwTopMessageAsError
- , throwTopMessageAsError'
, wrapHaskellFunction
) where
@@ -287,6 +286,15 @@ import qualified Foreign.Storable as F
-- Helper functions
--
+-- | Convert the object at the top of the stack into a string and throw it a... |
cosmetic changes - use WDK defines for PCI BAR manipulations | @@ -362,17 +362,17 @@ int virtio_get_bar_index(PPCI_COMMON_HEADER pPCIHeader, PHYSICAL_ADDRESS BasePA)
BAR.LowPart = pPCIHeader->u.type0.BaseAddresses[i];
iBar = i;
- if (BAR.LowPart & 0x01) {
+ if (BAR.LowPart & PCI_ADDRESS_IO_SPACE) {
/* I/O space */
- BAR.LowPart &= 0xFFFFFFFC;
+ BAR.LowPart &= PCI_ADDRESS_IO_ADDRES... |
modinfo BUGFIX proper mod cache unlock on error | @@ -926,7 +926,7 @@ sr_modcache_module_running_update(struct sr_mod_cache_s *mod_cache, struct sr_mo
/* CACHE WRITE LOCK */
if ((err_info = sr_rwlock(&mod_cache->lock, SR_MOD_CACHE_LOCK_TIMEOUT * 1000, SR_LOCK_WRITE, __func__))) {
- return err_info;
+ goto error_rlock;
}
/* data needs to be updated, remove old data */
... |
fix show stats database string format | @@ -89,7 +89,7 @@ od_console_show_stats_add(shapito_stream_t *stream,
int offset;
offset = shapito_be_write_data_row(stream);
int rc;
- rc = shapito_be_write_data_row_add(stream, offset, database, database_len);
+ rc = shapito_be_write_data_row_add(stream, offset, database, database_len - 1);
if (rc == -1)
return -1;
c... |
Cleanup some minor things in dynlibmod | @@ -25,12 +25,12 @@ void log_dlerror() {
NULL
))
{
- DWORD dwBytesWritten;
log_err("dynlibmod: %s (%ld)", MessageBuffer, dwLastError);
LocalFree(MessageBuffer);
}
}
+
HMODULE open_library(const char* fname) {
return LoadLibrary(fname);
}
@@ -42,6 +42,7 @@ HMODULE open_library(const char* fname) {
void log_dlerror() {
l... |
Fix popen bug. | @@ -112,16 +112,18 @@ static Janet janet_io_popen(int32_t argc, Janet *argv) {
janet_arity(argc, 1, 2);
const uint8_t *fname = janet_getstring(argv, 0);
const uint8_t *fmode = NULL;
+ int flags;
if (argc == 2) {
fmode = janet_getkeyword(argv, 1);
if (janet_string_length(fmode) != 1 ||
!(fmode[0] == 'r' || fmode[0] == '... |
TTY processes all messages before asking awm for a window redraw | @@ -124,20 +124,19 @@ int main(int argc, char** argv) {
while (true) {
amc_charlist_message_t msg = {0};
- // TODO(PT): While messages available, draw, then ask for redraw and block
- // Need a blocking and non-blocking await
+ do {
+ // Wait until we've unblocked with at least one message available
amc_message_await("... |
hv:add global lock for VM & vCPU management hypercalls
this patch is to avoid posisble inconsisent states for
VMs and vCPUs in configuration that SOS is SMP based
and Device Model may be multi-threads based.
Acked-by: Eddie Dong | #include <hypervisor.h>
#include <hypercall.h>
+static spinlock_t vmm_hypercall_lock = {
+ .head = 0U,
+ .tail = 0U,
+};
/*
* Pass return value to SOS by register rax.
* This function should always return 0 since we shouldn't
@@ -38,7 +42,9 @@ int vmcall_vmexit_handler(struct acrn_vcpu *vcpu)
/* Dispatch the hypercall ... |
PIO integration in the DIO | @@ -90,11 +90,20 @@ void icmpv6rpl_init() {
icmpv6rpl_vars.pio.flags = 96;
icmpv6rpl_vars.pio.plifetime = 0xFFFFFFFF;
icmpv6rpl_vars.pio.vlifetime = 0xFFFFFFFF;
+ // if not dagroot then do not initialize, will receive PIO and update fields
+ // later
+ if (idmanager_getIsDAGroot()){
memcpy(
&(icmpv6rpl_vars.pio.prefix[... |
Add -lm and disable EXPRECISION support on *BSD
fixes | @@ -8,6 +8,11 @@ if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
set(NO_EXPRECISION 1)
endif ()
+if (${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD|OpenBSD|NetBSD|DragonFly")
+ set(EXTRALIB "${EXTRALIB} -lm")
+ set(NO_EXPRECISION 1)
+endif ()
+
if (${CMAKE_SYSTEM_NAME} STREQUAL "AIX")
set(EXTRALIB "${EXTRALIB} -lm")
endif ()
|
gamepad: fix 8Bitdo counter | @@ -126,7 +126,7 @@ void gamepad_info () {
if (bitdo_count == 1)
gamepad_data[gamepad_count].name = "8BITDO PAD";
else
- gamepad_data[gamepad_count].name = "8BITDO PAD-" + to_string(switch_counter + 1);
+ gamepad_data[gamepad_count].name = "8BITDO PAD-" + to_string(bitdo_counter + 1);
bitdo_counter++;
}
//Get device st... |
api: Fold the empty pool check into the main macro
Type: improvement
the empty pool chekc is always required, so make it alwayd happen. | @@ -152,12 +152,6 @@ vl_api_map_domains_get_t_handler (vl_api_map_domains_get_t * mp)
i32 rv = 0;
- if (pool_elts (mm->domains) == 0)
- {
- REPLY_MACRO (VL_API_MAP_DOMAINS_GET_REPLY);
- return;
- }
-
/* *INDENT-OFF* */
REPLY_AND_DETAILS_MACRO (VL_API_MAP_DOMAINS_GET_REPLY, mm->domains,
({
|
Shell Recorder: Simplify CMake code | @@ -24,22 +24,15 @@ if (ENABLE_KDB_TESTING)
set (USE_CMAKE_KDB_COMMAND "") # set kdb command
if (BUILD_SHARED)
- set (KDB_COMMAND "kdb")
list (FIND REMOVED_PLUGINS list list_index)
if (list_index EQUAL -1)
set (ENABLE_REPLAY_TESTS TRUE)
endif (list_index EQUAL -1)
- elseif (BUILD_FULL)
- set (KDB_COMMAND "kdb-full")
- ... |
Increase spinquic Watchdog Wiggle Room
The 1 second wiggle room still had the watchdog fire and the clean up code path seemed to still be running. | @@ -70,7 +70,7 @@ public:
// The amount of extra time (in milliseconds) to give the watchdog before
// actually firing.
//
-#define WATCHDOG_WIGGLE_ROOM 1000
+#define WATCHDOG_WIGGLE_ROOM 5000
class SpinQuicWatchdog {
QUIC_THREAD WatchdogThread;
|
[doc] End of support for macOS (Closes | @@ -84,7 +84,7 @@ We recommend to install `stlink-tools` from the package repository of the used d
- RedHat/CentOS 8: Users can install from [EPEL repository](https://src.fedoraproject.org/rpms/stlink/branch/epel8)
- FreeBSD: Users can install from [freshports](https://www.freshports.org/devel/stlink)
-- MacOS: Users c... |
Fix RPM_DEPENDS for all rpm distros after | @@ -51,13 +51,11 @@ RPM_DEPENDS_GROUPS = 'Development Tools'
RPM_DEPENDS = redhat-lsb glibc-static java-1.8.0-openjdk-devel yum-utils
RPM_DEPENDS += openssl-devel https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm apr-devel
RPM_DEPENDS += python-devel
-ifeq ($(OS_ID)),fedora)
-ifeq ($(OS_VERSION_ID)... |
Silence compiler warning in nbtinsert.c.
Per buildfarm member longfin. | @@ -442,7 +442,7 @@ _bt_check_unique(Relation rel, BTInsertState insertstate, Relation heapRel,
if (inposting || !ItemIdIsDead(curitemid))
{
ItemPointerData htid;
- bool all_dead;
+ bool all_dead = false;
if (!inposting)
{
|
hardware unit tests: add option to dump waveform | @@ -28,6 +28,7 @@ import shutil
sys.path.insert(0, '..')
import test_harness
+DUMP_WAVEFORM = True
DRIVER_PATH='obj/driver.cpp'
DRIVER_SRC = '''
#include <iostream>
@@ -118,6 +119,9 @@ def run_unit_test(filename):
'--exe', DRIVER_PATH
]
+ if DUMP_WAVEFORM:
+ verilator_args.append('--trace')
+
try:
subprocess.call(veril... |
By default a number of router worker threads is set to a number
of CPUs. | @@ -305,6 +305,10 @@ nxt_router_conf_create(nxt_task_t *task, nxt_router_temp_conf_t *tmcf,
return NXT_ERROR;
}
+ if (tmcf->conf->threads == 0) {
+ tmcf->conf->threads = nxt_ncpu;
+ }
+
http = nxt_conf_get_path(conf, &http_path);
if (http == NULL) {
|
Add GH-A test | @@ -37,7 +37,7 @@ LOCAL_FIRESIM_DIR=$LOCAL_CHIPYARD_DIR/sims/firesim/sim
# key value store to get the build groups
declare -A grouping
-grouping["group-cores"]="chipyard-cva6 chipyard-ibex chipyard-rocket chipyard-hetero chipyard-boom chipyard-sodor chipyard-digitaltop chipyard-multiclock-rocket"
+grouping["group-cores... |
Fix exension id | /// Audio ports state is invalidated by clap_plugin_audio_ports_config.select() and
/// clap_host_audio_ports.rescan(CLAP_AUDIO_PORTS_RESCAN_LIST).
-static CLAP_CONSTEXPR const char CLAP_EXT_AUDIO_PORTS_ACTIVATION[] = "clap.audio-ports-activation";
+static CLAP_CONSTEXPR const char CLAP_EXT_AUDIO_PORTS_ACTIVATION[] = "... |
fix copyobj declarations to work with DYNAMIC_ARCH | @@ -11,26 +11,26 @@ ZTRMMKERNEL = ../generic/ztrmmkernel_2x2.c
SGEMMKERNEL = ../generic/gemmkernel_2x2.c
SGEMMONCOPY = ../generic/gemm_ncopy_2.c
SGEMMOTCOPY = ../generic/gemm_tcopy_2.c
-SGEMMONCOPYOBJ = sgemm_oncopy.o
-SGEMMOTCOPYOBJ = sgemm_otcopy.o
+SGEMMONCOPYOBJ = sgemm_oncopy$(TSUFFIX).$(SUFFIX)
+SGEMMOTCOPYOBJ = ... |
nat: det44 plugin session scavenging fix
det44 plugin process node would only run once on
the first plugin enable call. this patch ads
the required calls into while loop in the
process node funciton.
Type: fix | @@ -324,19 +324,29 @@ det44_expire_walk_fn (vlib_main_t * vm, vlib_node_runtime_t * rt,
snat_det_session_t *ses;
snat_det_map_t *mp;
+ while (1)
+ {
vlib_process_wait_for_event_or_clock (vm, 10.0);
vlib_process_get_events (vm, NULL);
u32 now = (u32) vlib_time_now (vm);
- /* *INDENT-OFF* */
- pool_foreach (mp, dm->det_m... |
Fix curruption from undefined entities (fixes | @@ -4975,10 +4975,10 @@ doProlog(XML_Parser parser, const ENCODING *enc, const char *s, const char *end,
parser->m_handlerArg, parser->m_declElementType->name,
parser->m_declAttributeId->name, parser->m_declAttributeType, 0,
role == XML_ROLE_REQUIRED_ATTRIBUTE_VALUE);
- poolClear(&parser->m_tempPool);
handleDefault = X... |
improved receive watchdog: print warnig if no packets received during a time >= 600 seconds | @@ -721,6 +721,17 @@ return;
}
/*===========================================================================*/
/*===========================================================================*/
+static inline void printreceivewatchdogwarnung()
+{
+static char timestring[16];
+
+strftime(timestring, 16, "%H:%M:%S", localti... |
removed superflous memmove calls | @@ -135,17 +135,11 @@ _mongoc_buffer_append (mongoc_buffer_t *buffer,
BSON_ASSERT (buffer->datalen);
- if (!SPACE_FOR (buffer, data_size)) {
- if (buffer->len) {
- memmove (&buffer->data[0], buffer->data, buffer->len);
- }
-
if (!SPACE_FOR (buffer, data_size)) {
BSON_ASSERT ((buffer->datalen + data_size) < INT_MAX);
bu... |
ci: add missing noqa:F401 | # Importing conf_common adds all the non-language-specific
# parts to this conf module
try:
- from conf_common import * # noqa: F403
+ from conf_common import * # noqa: F403,F401
except ImportError:
import sys
import os
sys.path.insert(0, os.path.abspath('..'))
- from conf_common import * # noqa: F403
+ from conf_commo... |
ic-proxy: get libuv on pr pipeline
We must install libuv on the PR pipeline to compile with ic-proxy
enabled. ICW tests are still run in ic-udpifc mode. | @@ -47,6 +47,13 @@ resources:
json_key: ((concourse-gcs-resources-service-account-key))
regexp: gp-internal-artifacts/centos7/libquicklz-devel-(1\.5\.0-.*)-1.el7.x86_64.rpm
+- name: libuv-centos7
+ type: gcs
+ source:
+ bucket: ((gcs-bucket))
+ json_key: ((concourse-gcs-resources-service-account-key))
+ regexp: gp-inte... |
Switch trigger to right-click when using fake headset
Currently left-click is used for both mouselook and trigger, which means it's impossible to mouselook without triggering | @@ -118,7 +118,7 @@ static void mouse_button_callback(GLFWwindow* window, int button, int action, in
vec_foreach(&state.controllers, controller, i) {
if (controller->id == 0) {
- if (button == GLFW_MOUSE_BUTTON_LEFT) {
+ if (button == GLFW_MOUSE_BUTTON_RIGHT) {
ev.data.controllerpressed.controller = controller;
ev.data... |
arch: lc823450: Fix to boot
Summary:
I noticed that lc823450-xgevk does not boot due to the recent
changes on g_current_regs
This PR fixes this issue
Impact:
None
Testing:
Tested with lc823450-xgevk:rndis | @@ -170,10 +170,6 @@ void __start(void)
*dest++ = *src++;
}
- /* run as interrupt context, before scheduler running */
-
- CURRENT_REGS = (uint32_t *)1;
-
#ifdef CONFIG_LASTKMSG_LOWOUTS
if (g_lastksg_buf.sig == LASTKMSG_SIG_REBOOT)
|
testing cmake | @@ -15,8 +15,8 @@ configure_file (
include_directories (inc)
include_directories (lib)
include_directories (lib/sqlite)# windows specific
-include_directories (srb_test/odb/libodb-2.4.0)# windows specific
-include_directories (srb_test/odb/libodb-sqlite-2.4.0)# windows specific
+include_directories (srb_test/odb32/libo... |
Avoid calling cleanup early since conf.stop_processing already should gracefully end goaccess. | @@ -210,6 +210,7 @@ cleanup (int ret) {
if (!conf.output_stdout)
endwin ();
+ fprintf (stderr, "Cleaning up resources...\n");
/* unable to process valid data */
if (ret)
output_logerrors ();
@@ -1397,11 +1398,6 @@ handle_signal_action (GO_UNUSED int sig_number) {
if (conf.output_stdout && conf.real_time_html)
stop_ws_s... |
Updated config file to reflect latest GeoIP database changes. | @@ -659,31 +659,43 @@ static-file .flv
# Only if configured with --enable-geoip
######################################
-# Standard GeoIP database for less memory usage.
+# To feed a database either through GeoIP Legacy or GeoIP2, you need to use the
+# geoip-database flag below.
#
-#std-geoip false
-
-# Specify path to... |
also printout uuid in test-cmd uuid | @@ -474,8 +474,10 @@ int uuid(int argc, char **argv, apr_pool_t *pool) {
(const void *) 1);
}
i++;
- if (i % e == 0)
- fprintf(stderr, "\r %lu ", i / e);
+ if (i % e == 0) {
+ apr_uuid_format((char *) &s_uuid, uuid);
+ fprintf(stderr, "\r %lu (%s)", i / e, s_uuid);
+ }
}
fprintf(stderr, "\n");
return 0;
|
decision: remove duplicated information from problem statement | @@ -50,9 +50,7 @@ static void test_doubleGet (void)
}
```
-> It actually outputs should find key (2) so the assertion fails.
-
-It was found unexpected that the second assert will fail.
+It was found unexpected that the second assert - should find key (2) - will fail.
## Constraints
|
update internal configuration | #ifndef LV_USE_GPU_STM32_DMA2D
#define LV_USE_GPU_STM32_DMA2D 0
#endif
+/*If enabling LV_USE_GPU_STM32_DMA2D, LV_GPU_DMA2D_CMSIS_INCLUDE must be defined to include path of CMSIS header of target processor
+e.g. "stm32f769xx.h" or "stm32f429xx.h" */
+#ifndef LV_GPU_DMA2D_CMSIS_INCLUDE
+#define LV_GPU_DMA2D_CMSIS_INCLUDE... |
use defined type | #define SDR_NUM_BLOCKS SDR_TERM_SIZE / SDR_BLOCK_SIZE
typedef struct
{
- __uint128_t blocks[SDR_NUM_BLOCKS];
+ SDR_BLOCK_TYPE blocks[SDR_NUM_BLOCKS];
}SDR;
SDR input_terms[TERMS_MAX];
_Bool input_terms_used[TERMS_MAX];
|
core: changed error function | @@ -680,7 +680,7 @@ static int elektraGetCheckUpdateNeeded (Split * split, Key * parentKey)
}
else
{
- ELEKTRA_SET_ERROR (ELEKTRA_PLUGIN_STATUS_ERROR, parentKey, "kdbGet was missing in the resolver plugin");
+ ELEKTRA_SET_INSTALLATION_ERROR (parentKey, "kdbGet was missing in the resolver plugin. Keyname: %s");
ret = EL... |
specload: more error handling | @@ -310,18 +310,35 @@ bool loadSpec (KeySet * returned, const char * app, char * argv[], Key * parentK
pid_t pid;
int fd[2];
- pipe (fd);
+ if (pipe (fd) != 0)
+ {
+ ELEKTRA_SET_ERRORF (ELEKTRA_ERROR_SPECLOAD, parentKey, "Could not execute app: %s", strerror (errno));
+ return NULL;
+ }
pid = fork ();
+ if (pid == -1)
... |
hv: fix error use of list_del for delete timer
We should use list_del_init here. Otherwise it would misorder the
timer list if we would delete timer more than once if there're more
than one timer on it. | @@ -96,7 +96,7 @@ int add_timer(struct timer *timer)
void del_timer(struct timer *timer)
{
if (timer && !list_empty(&timer->node))
- list_del(&timer->node);
+ list_del_init(&timer->node);
}
static int request_timer_irq(int pcpu_id,
|
quic: fix typo | @@ -1071,7 +1071,7 @@ if h2o_pid == 0:
u = USDT(pid=int(h2o_pid))
if sys.argv[1] == "quic":
- # provider qiucly:
+ # provider quicly:
u.enable_probe(probe="accept", fn_name="trace_quicly__accept")
u.enable_probe(probe="receive", fn_name="trace_quicly__receive")
u.enable_probe(probe="version_switch", fn_name="trace_quic... |
khan: send errors over socket
Also:
More precise TODOs.
Send %cue-none rather than %'bad jar' on cue failure. | +// TODO
+// - remove sequence numbers or add them all the way
+// - think carefully about error handling
+// - think carefully about protocol
+// - implement runtime-specific queries
+// - remove references to %set-config
+// - clean up logging
/* vere/khan.c
**
*/
@@ -60,14 +67,7 @@ _khan_moor_bail(void* ptr_v, ssize... |
Waddledee: Add pull-ups to volume GPIOs
Add internal pull-ups to volume button GPIOs.
BRANCH=None
TEST=make -j buildall | @@ -37,8 +37,8 @@ GPIO_INT(USB_C0_CCSBU_OVP_ODL, PIN(K, 6), GPIO_INT_FALLING | GPIO_PULL_UP, c0_cc
/* Other interrupts */
GPIO_INT(LID_OPEN, PIN(F, 3), GPIO_INT_BOTH, lid_interrupt)
GPIO_INT(LID_360_L, PIN(A, 7), GPIO_INT_BOTH, gmr_tablet_switch_isr)
-GPIO_INT(VOLDN_BTN_ODL, PIN(I, 6), GPIO_INT_BOTH, button_interrupt)
... |
Xerces: Use correct plugin name in ReadMe | -- infos = Information about the template plugin is in keys below
+- infos = Information about the xerces plugin is in keys below
- infos/author = Armin Wurzinger <e1528532@libelektra.org>
- infos/licence = BSD
- infos/provides = storage/xml
|
extmod: wait should allow floating point argument
wait(1000/3) # This should be allowed | #include "py/mphal.h"
#include "py/runtime.h"
-#include "extmod/utime_mphal.h"
+#include "pberror.h"
+#include "pbobj.h"
+
+STATIC mp_obj_t tools_wait(mp_obj_t arg) {
+ int32_t duration = mp_obj_get_num(arg);
+ if (duration < 0) {
+ pb_assert(PBIO_ERROR_INVALID_ARG);
+ }
+ mp_hal_delay_ms(duration);
+ return mp_const_n... |
Make get_cuda_setup_error use its own train data | +import json
import os
import pytest
import re
+import shutil
+import tempfile
import yatest.common
import yatest.yt
-import json
-import shutil
def get_catboost_binary_path():
@@ -32,20 +33,20 @@ def get_cuda_setup_error():
for flag in pytest.config.option.flags:
if re.match('HAVE_CUDA=(0|no|false)', flag, flags=re.IG... |
Add ICreatables | using FFXIVClientStructs.FFXIV.Client.Graphics;
+using FFXIVClientStructs.FFXIV.Client.System.Memory;
namespace FFXIVClientStructs.FFXIV.Component.GUI;
@@ -47,7 +48,7 @@ public enum NodeFlags
// size = 0xA8
// ctor E9 ?? ?? ?? ?? 33 C0 48 83 C4 20 5B C3 66 90
[StructLayout(LayoutKind.Explicit, Size = 0xA8)]
-public uns... |
Hyundai Safety Auto-Detect which CAN bus Camera is on
* This compiles, and steers the car, but no unit tests performed (yet)
* Updates
225 for max torque after discussions with users in #hyundai
Fixed violation disable as requested
* Hyundai Auto-Detect which CAN bus Camera is on | @@ -7,6 +7,7 @@ const int HYUNDAI_DRIVER_TORQUE_ALLOWANCE = 50;
const int HYUNDAI_DRIVER_TORQUE_FACTOR = 2;
int hyundai_camera_detected = 0;
+int hyundai_camera_bus = 0;
int hyundai_giraffe_switch_2 = 0; // is giraffe switch 2 high?
int hyundai_rt_torque_last = 0;
int hyundai_desired_torque_last = 0;
@@ -39,6 +40,14 @@... |
fix position of comment | @@ -98,8 +98,8 @@ register_functions(struct ubpf_vm *vm) {
ubpf_register(vm, 0x3b, "picoquic_find_stream", picoquic_find_stream);
ubpf_register(vm, 0x3c, "picoquic_set_cnx_state", picoquic_set_cnx_state);
ubpf_register(vm, 0x3d, "picoquic_frames_varint_decode", picoquic_frames_varint_decode);
- /* This value is reserve... |
process slot skipping at the end of slot. | @@ -890,20 +890,6 @@ port_INLINE void activity_ti1ORri1() {
// find the next one
ieee154e_vars.nextActiveSlotOffset = schedule_getNextActiveSlotOffset();
- if (idmanager_getIsSlotSkip() && idmanager_getIsDAGroot()==FALSE) {
- if (ieee154e_vars.nextActiveSlotOffset>ieee154e_vars.slotOffset) {
- ieee154e_vars.numOfSleepS... |
ci: Allow running workflow on pull_request to test external contributions | @@ -7,7 +7,12 @@ concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
on:
+ pull_request:
push:
+ branches:
+ - main
+ tags:
+ - 'v*'
# Jobs are given a level in a comment.
# Jobs of the same level run in parallel.
|
Added missing blend functions. | @@ -927,7 +927,9 @@ typedef enum SceGxmBlendFunc {
SCE_GXM_BLEND_FUNC_NONE,
SCE_GXM_BLEND_FUNC_ADD,
SCE_GXM_BLEND_FUNC_SUBTRACT,
- SCE_GXM_BLEND_FUNC_REVERSE_SUBTRACT
+ SCE_GXM_BLEND_FUNC_REVERSE_SUBTRACT,
+ SCE_GXM_BLEND_FUNC_MIN,
+ SCE_GXM_BLEND_FUNC_MAX
} SceGxmBlendFunc;
typedef enum SceGxmBlendFactor {
|
Todor: Free up flash space
Todor is nearly out of flash, so remove help strings.
BRANCH=None
TEST=build, observe todor now has about 4.5k free flash | /* Optional features */
#define CONFIG_SYSTEM_UNLOCKED /* Allow dangerous commands while in dev. */
+/* Free up flash space */
+#undef CONFIG_CONSOLE_CMDHELP
+
#define CONFIG_VBOOT_EFS2
#define CONFIG_POWER_BUTTON
|
optimize state json_object creation | @@ -372,9 +372,6 @@ apr_byte_t oidc_session_kill(request_rec *r, oidc_session_t *z) {
apr_byte_t oidc_session_get(request_rec *r, oidc_session_t *z, const char *key,
const char **value) {
- if (z->state == NULL)
- z->state = json_object();
-
/* just return the value for the key */
oidc_json_object_get_string(r->pool, z... |
s5j/spi: fix initialization bug of SPI driver
Durung code rework, hardcoding was replaced by macro definitions.
Function setmode had to have inverted MASK to clear bitfields.
It was not invered, therefore all bits except mode were cleared. | @@ -443,7 +443,7 @@ static void spi_setmode(struct spi_dev_s *dev, enum spi_mode_e mode)
unsigned int ch_cfg;
ch_cfg = getreg32(&pSPIRegs->CH_CFG);
- ch_cfg = (ch_cfg & CH_CFG_MODE_MASK) | CH_CFG_MODE(mode);
+ ch_cfg = (ch_cfg & (~CH_CFG_MODE_MASK)) | CH_CFG_MODE(mode);
putreg32(ch_cfg, &pSPIRegs->CH_CFG);
}
|
update wip 0.4.0 changelog | +## 0.4.0
+
+- Fix some stack corruption with multiple wrenInterpret calls
+- WREN_MAX_TEMP_ROOTS default is 8 (instead of 5)
+- Add `Num.log2` and `Num.exp`
+- Fixed crash when GC collects module during import 2ce421ea
+- Fixed bug with `import` (28ad8aa9)
+- Map API support:
+ - wrenSetSlotNewMap
+ - wrenGetMapCount
... |
[examples] add return 1 if an exception is caught | @@ -317,10 +317,12 @@ int main(int argc, char* argv[])
catch (SiconosException e)
{
cout << e.report() << endl;
+ return 1;
}
catch (...)
{
cout << "Exception caught." << endl;
+ return 1;
}
cout << "Computation Time: " << time.elapsed() << endl;
}
|
truncate zero to no digits for old executor | @@ -425,6 +425,10 @@ static void decimalGetValueBuffer(dbcommon::DecimalVector *srcVector,
DEC_DIGITS -
1
: -1;
+
+ // In particular, if the value is zero, there will be no digits at all
+ if (significantDigitCount == 0) totalDigitCount = 0;
+
numeric.varlen =
NUMERIC_HDRSZ +
((totalDigitCount + DEC_DIGITS - 1) / DEC_D... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.