message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
feat(venachain):adapt some api name | @@ -184,7 +184,7 @@ BOAT_RESULT venachain_call_mycontract(BoatVenachainWallet *wallet_ptr)
BCHAR *result_str;
BoatVenachainTx tx_ctx;
BOAT_RESULT result;
- nodesResult result_out = {0,NULL};
+ venachain_nodesResult result_out = {0,NULL};
/* Set Contract Address */
result = BoatVenachainTxInit(wallet_ptr, &tx_ctx, BOAT_... |
[RPC] Add new commit status error code
duplicate nonce of transaction | @@ -231,6 +231,8 @@ func convertError(err error) types.CommitStatus {
return types.CommitStatus_TX_INVALID_FORMAT
case types.ErrInsufficientBalance:
return types.CommitStatus_TX_INSUFFICIENT_BALANCE
+ case types.ErrSameNonceAlreadyInMempool:
+ return types.CommitStatus_TX_HAS_SAME_NONCE
default:
//logger.Info().Str("ha... |
Remove since test is now functioning correctly | -- @Description Test vmem shown in the live view matches the amount in memory accounting
--- @skip Memory accounting failed to capture the memory allocation in UDF. Enable this test once the bug is fixed.
-- @author Zhongxian Gu
-- session1: issue the testing query
|
Log light on/off and level values in database | @@ -2030,6 +2030,7 @@ LightNode *DeRestPluginPrivate::updateLightNode(const deCONZ::NodeEvent &event)
updated = true;
}
lightNode->setZclValue(updateType, event.clusterId(), 0x0000, ia->numericValue());
+ pushZclValueDb(event.node()->address().ext(), event.endpoint(), event.clusterId(), ia->id(), ia->numericValue().u8)... |
hv: security: remove superfluous prototype
An external object or function shall be declared once in one and only one file.
Since it already declared in include/arch/x86/security.h, we shall remove it. | @@ -45,8 +45,6 @@ bool cpu_has_vmx_ept_cap(uint32_t bit_mask);
bool cpu_has_vmx_vpid_cap(uint32_t bit_mask);
void init_cpu_capabilities(void);
void init_cpu_model_name(void);
-bool check_cpu_security_cap(void);
-void cpu_l1d_flush(void);
int32_t detect_hardware_support(void);
struct cpuinfo_x86 *get_cpu_info(void);
|
Add mutex protection init | @@ -116,10 +116,10 @@ esp_init(esp_evt_fn evt_func, const uint32_t blocking) {
esp_buff_init(&esp.buff, ESP_CFG_RCV_BUFF_SIZE); /* Init buffer for input data */
#endif /* !ESP_CFG_INPUT_USE_PROCESS */
+ esp_core_lock();
esp.ll.uart.baudrate = ESP_CFG_AT_PORT_BAUDRATE;/* Set default baudrate value */
esp_ll_init(&esp.ll... |
animate minimizing | @@ -250,6 +250,7 @@ static void resizemouse(const Arg *arg);
static void resizeaspectmouse(const Arg *arg);
static void resizerequest(XEvent *e);
static void restack(Monitor *m);
+static void animateclient(Client *c, int x, int y, int w, int h, int frames, int resetpos);
static void run(void);
static void runAutostart(... |
removed stray whitespaces from change logs | @@ -4,4 +4,3 @@ Features
Added Support for transparent and opaque keys (import/export/copy).
Included some general JSON validation for the given entry points.
Addresses version 1.1 of #5137.
-
|
sysdeps/managarm: add support for DRM_IOCTL_MODE_DESTROY_DUMB | @@ -2357,6 +2357,45 @@ int sys_ioctl(int fd, unsigned long request, void *arg, int *result) {
return 0;
}
}
+ case DRM_IOCTL_MODE_DESTROY_DUMB: {
+ auto param = reinterpret_cast<drm_mode_destroy_dumb *>(arg);
+
+ HelAction actions[4];
+ globalQueue.trim();
+
+ managarm::fs::CntRequest<MemoryAllocator> req(getSysdepsAll... |
oauth2: fix token expires time not updated | @@ -390,6 +390,8 @@ char *flb_oauth2_token_get(struct flb_oauth2 *ctx)
flb_info("[oauth2] access token from '%s:%s' retrieved",
ctx->host, ctx->port);
flb_http_client_destroy(c);
+ ctx->issued = time(NULL);
+ ctx->expires = ctx->issued + ctx->expires_in;
return ctx->access_token;
}
}
|
zephyr/include/emul/emul_lis2dw12.h: Format with clang-format
BRANCH=none
TEST=none | @@ -87,8 +87,7 @@ uint8_t lis2dw12_emul_peek_lpmode(struct i2c_emul *emul);
* @param reading array of int X, Y, and Z readings.
* @return 0 on success, or -EINVAL if readings are out of bounds.
*/
-int lis2dw12_emul_set_accel_reading(const struct emul *emul,
- intv3_t reading);
+int lis2dw12_emul_set_accel_reading(cons... |
hv:Use exception vector MACRO instead of hardcode
Now use hardcode when inject GP/NMI to guest,
replace it with MACRO. | @@ -210,7 +210,9 @@ static int vcpu_do_pending_gp(__unused struct vcpu *vcpu)
/* GP vector = 13 */
exec_vmwrite(VMX_ENTRY_INT_INFO_FIELD,
VMX_INT_INFO_VALID |
- ((VMX_INT_TYPE_HW_EXP | EXCEPTION_ERROR_CODE_VALID) <<8) | 13);
+ ((VMX_INT_TYPE_HW_EXP | EXCEPTION_ERROR_CODE_VALID) << 8) |
+ IDT_GP);
+
return 0;
}
@@ -357,... |
Add lovr.getOS; | @@ -21,6 +21,18 @@ static int handleLuaError(lua_State* L) {
return 0;
}
+static int lovrGetOS(lua_State* L) {
+#ifdef _WIN32
+ lua_pushstring(L, "Windows");
+ return 1;
+#elif __APPLE__
+ lua_pushstring(L, "macOS");
+ return 1;
+#endif
+ lua_pushnil(L);
+ return 1;
+}
+
static int lovrGetVersion(lua_State* L) {
lua_pu... |
framework/iotbus: add dependancies on iotbus configs
All of iotbus sub-modules use each driver which is at os/drivers folder.
So, iotbus should have dependacies with config of driver.
This commit adds dependancies between iotbus and drivers. | @@ -14,30 +14,35 @@ if IOTBUS
config IOTBUS_GPIO
bool "IoTbus GPIO"
default y
+ select GPIO
---help---
Enables IoTbus GPIO
config IOTBUS_I2C
bool "IoTbus I2C"
default y
+ depends on I2C
---help---
Enables IoTbus I2C
config IOTBUS_PWM
bool "IoTbus PWM"
default y
+ depends on PWM
---help---
Enables IoTbus PWM
config IOTB... |
Better error handling for connection_ssl_new
Instead of assertions, do proper error checking/handling.
evhtp_connection_ssl_new now returns NULL on *ANY* error. | @@ -5306,6 +5306,10 @@ evhtp_connection_new_dns(struct event_base * evbase, struct evdns_base * dns_bas
} /* evhtp_connection_new_dns */
#ifndef EVHTP_DISABLE_SSL
+
+#define ssl_sk_new_ bufferevent_openssl_socket_new
+#define ssl_sk_connect_ bufferevent_socket_connect
+
evhtp_connection_t *
evhtp_connection_ssl_new(str... |
Analysis workflow, use cpan to install perl module. | @@ -248,7 +248,11 @@ jobs:
cd ..
export prepath=`pwd`
echo prepath=${prepath}
+ echo "curl cpanm"
+ curl -L https://cpanmin.us/ -o cpanm
+ perl cpanm POD::Usage
mkdir openssl
+ echo "curl openssl"
curl -L -k -s -S -o openssl-1.1.1j.tar.gz https://www.openssl.org/source/openssl-1.1.1j.tar.gz
tar xzf openssl-1.1.1j.tar.g... |
sysdeps/linux: implement sys_vm_unmap | @@ -118,9 +118,10 @@ int sys_vm_map(void *hint, size_t size, int prot, int flags,
}
int sys_vm_unmap(void *pointer, size_t size) {
- UNUSED(pointer);
- UNUSED(size);
- STUB_ONLY
+ auto ret = do_syscall(NR_munmap, pointer, size);
+ if(int e = sc_error(ret); e)
+ return e;
+ return 0;
}
// All remaining functions are dis... |
Update the base demo's README | -CC26xx Demo
-===========
-This example demonstrates basic functionality for the two supported CC26xx
-boards. More specifically, the example demonstrates:
+CC13xx/CC26xx Base Demo
+=======================
+This example demonstrates basic functionality for the various CC13xx/CC26xx
+boards supported by Contiki-NG.
+
+T... |
Remove unused entries in baseline_quant_error | @@ -325,11 +325,7 @@ static void compute_color_error_for_every_integer_count_and_quant_level(
) {
int partition_size = pi.partition_texel_count[partition_index];
- static const float baseline_quant_error[21] {
- (65536.0f * 65536.0f / 18.0f), // 2 values, 1 step
- (65536.0f * 65536.0f / 18.0f) / (2 * 2), // 3 values, 2... |
chip/npcx/gpio.c: Format with clang-format
BRANCH=none
TEST=none | @@ -101,8 +101,7 @@ static uint8_t gpio_is_alt_sel(uint8_t port, uint8_t bit)
struct gpio_alt_map const *map;
uint8_t alt_mask, devalt;
- for (map = ARRAY_BEGIN(gpio_alt_table);
- map < ARRAY_END(gpio_alt_table);
+ for (map = ARRAY_BEGIN(gpio_alt_table); map < ARRAY_END(gpio_alt_table);
map++) {
if (gpio_match(port, bi... |
stm32/boards/STM32F429DISC: Add burst len and autorefresh to SDRAM cfg.
To align with recent changes to sdram.c. | #define MICROPY_HW_SDRAM_TIMING_TRCD (2)
#define MICROPY_HW_SDRAM_REFRESH_RATE (64) // ms
+#define MICROPY_HW_SDRAM_BURST_LENGTH 2
#define MICROPY_HW_SDRAM_CAS_LATENCY 3
#define MICROPY_HW_SDRAM_COLUMN_BITS_NUM 8
#define MICROPY_HW_SDRAM_ROW_BITS_NUM 12
#define MICROPY_HW_SDRAM_RPIPE_DELAY 1
#define MICROPY_HW_SDRAM_RB... |
VERSION bump to version 2.0.73 | @@ -58,7 +58,7 @@ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
# set version of the project
set(LIBYANG_MAJOR_VERSION 2)
set(LIBYANG_MINOR_VERSION 0)
-set(LIBYANG_MICRO_VERSION 72)
+set(LIBYANG_MICRO_VERSION 73)
set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_MICRO_VERSION})
... |
Update sway-output.5.scd
Some more clarifications because it seems scale questions are recurring. | @@ -38,17 +38,20 @@ must be separated by one space. For example:
Places the specified output at the specific position in the global
coordinate space. If scaling is active, it has to be considered when
positioning. For example, if the scaling factor for the left output is 2,
- the relative position for the right output ... |
examples/nettest/: Loopback option shoudl be available in Kconfig for PktRadio. | @@ -39,7 +39,7 @@ config EXAMPLES_NETTEST_PRIORITY1
config EXAMPLES_NETTEST_LOOPBACK
bool "Loopback test"
default n
- depends on NET_LOOPBACK || IEEE802154_LOOPBACK
+ depends on NET_LOOPBACK || IEEE802154_LOOPBACK || PKTRADIO_LOOPBACK
---help---
Perform the test using the local loopback device. In this case,
both the c... |
Add codacy badge
[ci skip] | # Nyuzi Processor
[](https://travis-ci.org/jbush001/NyuziProcessor)
[](https://gitter.im/jbush001/NyuziProcessor?utm_source=badge&utm_medium=badge... |
Add _CRT_SECURE_NO_WARNINGS; | @@ -516,6 +516,7 @@ if(WIN32)
set_target_properties(lovr PROPERTIES COMPILE_FLAGS "/wd4244")
set_target_properties(lovr PROPERTIES LINK_FLAGS_DEBUG "/SUBSYSTEM:CONSOLE")
set_target_properties(lovr PROPERTIES LINK_FLAGS_RELEASE "/SUBSYSTEM:windows /ENTRY:mainCRTStartup")
+ target_compile_definitions(lovr PUBLIC -D_CRT_S... |
sharpyuv,SharpYuvInit: add mutex protection when available
this is similar to WEBP_DSP_INIT and avoids the potential for a race in
initializing the function pointers and gamma table | @@ -414,6 +414,22 @@ static int DoSharpArgbToYuv(const uint8_t* r_ptr, const uint8_t* g_ptr,
}
#undef SAFE_ALLOC
+#if defined(WEBP_USE_THREAD) && !defined(_WIN32)
+#include <pthread.h> // NOLINT
+
+#define LOCK_ACCESS \
+ static pthread_mutex_t sharpyuv_lock = PTHREAD_MUTEX_INITIALIZER; \
+ if (pthread_mutex_lock(&shar... |
Doxygen: add description to top-level modules | @@ -40,6 +40,7 @@ CPU, device drivers and platform code
/**
\defgroup net IoT networking
+The communication protocols
*/
/**
@@ -79,6 +80,12 @@ Supports only non-storing mode, one instance and one DAG.
/**
\defgroup lib Libraries and services
+A set of libraries and services used by the os and applications
+*/
+
+/**
+... |
{AH} fix double declaration | @@ -22,8 +22,6 @@ from libcsamtools cimport samtools_main, samtools_set_stdout, samtools_set_stder
from libcbcftools cimport bcftools_main, bcftools_set_stdout, bcftools_set_stderr, \
bcftools_unset_stderr, bcftools_unset_stdout, bcftools_set_stdout_fn, bcftools_set_optind
-cdef bint IS_PYTHON3 = PY_MAJOR_VERSION >= 3
... |
travis: let brew install openssl on macOS | @@ -22,7 +22,7 @@ script:
- |
if [ $TRAVIS_OS_NAME = osx ]; then
brew update > /dev/null
- brew install lz4
+ brew install lz4 openssl
fi
# workaround git not retaining mtimes and bison/flex not being uptodate
- touch conffile.yy.c conffile.tab.c conffile.tab.h
|
changed default news feed | @@ -4,8 +4,8 @@ import qrcode
# Uncomment one URL to use (Top Stories, World News and technology)
# URL = "http://feeds.bbci.co.uk/news/rss.xml"
-URL = "http://feeds.bbci.co.uk/news/world/rss.xml"
-# URL = "http://feeds.bbci.co.uk/news/technology/rss.xml"
+# URL = "http://feeds.bbci.co.uk/news/world/rss.xml"
+URL = "ht... |
Internal Check: Disable test for JNI plugin | @@ -26,6 +26,13 @@ printf "Checking %s\n" "$ACTUAL_PLUGINS"
for PLUGIN in $ACTUAL_PLUGINS
do
case "$PLUGIN" in
+ 'jni')
+ # References:
+ # - https://travis-ci.org/sanssecours/elektra/builds/410641048
+ # - https://issues.libelektra.org/1466
+ # - https://issues.libelektra.org/1963
+ continue
+ ;;
"tracer")
# output on... |
Check if omp_alloc returns a nullptr (e.g. on systems that do not support managed memory) | @@ -16,8 +16,8 @@ int check_res(double * v, int n) {
}
int main() {
- int devnums = 2;
- int devids[] = {0,1};
+ int devnums = 3;
+ int devids[] = {0,1, omp_get_initial_device()};
int n = N;
int err = 0;
omp_memspace_handle_t managed_memory = omp_get_memory_space(devnums, devids, llvm_omp_target_shared_mem_space);
@@ -... |
rune/libenclave/epm: add support for sgx kernel driver upstreamed
SGX device node has been changed from /dev/sgx/enclave to /dev/sgx_enclave.
This implementation matches with this change.
Fixes: | @@ -12,7 +12,9 @@ import (
*/
const (
EnclavePath = "/dev/sgx/enclave"
+ EnclaveNewPath = "/dev/sgx_enclave"
EnclavePathPool = "/sgx/enclave"
+ EnclaveNewPathPool = "/sgx_enclave"
)
func GetEnclProcMaps(pid int) ([]*procfs.ProcMap, error) {
@@ -35,7 +37,7 @@ func GetEnclProcMaps(pid int) ([]*procfs.ProcMap, error) {
fo... |
decision: clarify solution | @@ -127,11 +127,41 @@ Then we can just do a "fake" call to that phase to get back the transient names
After a value has been set by the user, call the transformation plugin.
We could store those callbacks as metakeys, i.e. `meta:/generated/transformation/value/callback/#1`.
+Alternatively, we could implement a linked l... |
Fixed issue where duplicate color texture assignments to a single shader would result in invalid assignments. | @@ -95,28 +95,53 @@ SyncOutputMaterial::createOutputMaterial(MDGModifier &dgModifier,
CHECK_MSTATUS_AND_RETURN(status, MObject::kNullObj);
}
- // connect shader attributse
+ // connect shader attributes
{
MPlug srcPlug;
MPlug dstPlug;
+ MPlug colorPlug(shaderFn.findPlug("color", true));
// color
if (textureFileFn.objec... |
revert r4257366
Note: mandatory check (NEED_CHECK) was skipped | },
"ymake": {
"formula": {
- "sandbox_id": [339775566],
+ "sandbox_id": [337917409],
"match": "ymake"
},
"executable": {
|
Update comments of params.h
"automataions -> modulations" of flags indicating modulatable parameters | @@ -129,13 +129,13 @@ enum {
// Does this parameter support per note automations?
CLAP_PARAM_IS_MODULATABLE_PER_NOTE_ID = 1 << 11,
- // Does this parameter support per key automations?
+ // Does this parameter support per key modulations?
CLAP_PARAM_IS_MODULATABLE_PER_KEY = 1 << 12,
- // Does this parameter support per... |
Fix formatting of PYCA external test instructions | @@ -93,7 +93,7 @@ to be installed.
$ make test VERBOSE=1 TESTS=test_external_pyca
Test failures and suppressions
-==============================
+------------------------------
Some tests target older (<=1.0.2) versions so will not run. Other tests target
other crypto implementations so are not relevant. Currently no t... |
glob: update hash correctly | :: glob [landscape]:
::
:: prompts content delivery and Gall state storage for Landscape JS blob
-++ hash 0v5.6e3d0.3hm4q.iib09.rb2jb.9h4k4
+::
/- glob
/+ default-agent, verb, dbug
|%
-++ hash 0v4.6aspk.m4l21.aha5i.79git.eu8bv
+++ hash 0v5.6e3d0.3hm4q.iib09.rb2jb.9h4k4
+$ state-0 [%0 hash=@uv glob=(unit (each glob:glob... |
Disable GPS load switching on black pandas | @@ -67,18 +67,15 @@ void black_set_esp_gps_mode(uint8_t mode) {
// GPS OFF
set_gpio_output(GPIOC, 14, 0);
set_gpio_output(GPIOC, 5, 0);
- black_set_gps_load_switch(false);
break;
case ESP_GPS_ENABLED:
// GPS ON
set_gpio_output(GPIOC, 14, 1);
set_gpio_output(GPIOC, 5, 1);
- black_set_gps_load_switch(true);
break;
case E... |
update rtc_sleep_init for esp32s2 | @@ -95,6 +95,11 @@ void rtc_sleep_init(rtc_sleep_config_t cfg)
CLEAR_PERI_REG_MASK(RTC_CNTL_DIG_PWC_REG, RTC_CNTL_WIFI_PD_EN);
}
+ REG_SET_FIELD(RTC_CNTL_BIAS_CONF_REG, RTC_CNTL_DBG_ATTEN_MONITOR, RTC_CNTL_DBG_ATTEN_MONITOR_DEFAULT);
+ REG_SET_FIELD(RTC_CNTL_BIAS_CONF_REG, RTC_CNTL_BIAS_SLEEP_MONITOR, RTC_CNTL_BIASSLP_... |
Remove LED use from examples that don't really need them | #include "contiki-net.h"
#include "lib/trickle-timer.h"
-#include "dev/leds.h"
#include "lib/random.h"
#include <string.h>
@@ -80,7 +79,6 @@ AUTOSTART_PROCESSES(&trickle_protocol_process);
static void
tcpip_handler(void)
{
- leds_on(LEDS_GREEN);
if(uip_newdata()) {
PRINTF("At %lu (I=%lu, c=%u): ",
(unsigned long)clock_... |
Early-reject OBJ files;
OBJ files must start with a vertex, object, mtllib, or comment. | @@ -92,6 +92,10 @@ static void parseMtl(char* path, char* base, ModelDataIO* io, arr_image_t* image
}
ModelData* lovrModelDataInitObj(ModelData* model, Blob* source, ModelDataIO* io) {
+ if (source->size < 7 || (memcmp(source->data, "v ", 2) && memcmp(source->data, "o ", 2) && memcmp(source->data, "mtllib ", 7) && memc... |
Testing: -w option | @@ -118,6 +118,36 @@ diff $temp1 $temp2
# Section pointers
grib_check_key_equals $sample_g2 'section0Pointer,section1Pointer,section3Pointer,section4Pointer' '0_16 16_21 37_72 109_34'
+# constraints: -w option
+file=tigge_pf_ecmwf.grib2 # Has 38 messages
+${tools_dir}/grib_ls -w count!=1 $file > $temp_ls
+grep -q "37 o... |
epm: fix the nil pointer bug when get the ancstor caches | @@ -2,6 +2,7 @@ package metadata
import (
"encoding/json"
+ "fmt"
"time"
"github.com/boltdb/bolt"
@@ -115,6 +116,9 @@ func (m *Metadata) GetAncestorCaches(cache *v1alpha1.Cache) ([]*v1alpha1.Cache,
if err != nil {
return nil, err
}
+ if c == nil {
+ return nil, fmt.Errorf("parent cache is not exit. type: %s, id: %s", p... |
loadable_apps/binary_update: Close opened file descriptors
Close file descriptors opened by function 'open' but not closed. | @@ -157,7 +157,7 @@ static int binary_update_download_binary(binary_update_info_t *binary_info, int
}
printf("Download binary %s version %d Done!\n", APP_NAME, new_version);
- return OK;
+ ret = OK;
errout_with_close_fd2:
close(write_fd);
errout_with_close_fd1:
@@ -166,7 +166,7 @@ errout_with_close_fd1:
fail_cnt++;
}
-... |
Tests: waitforsocket() introduced. | import re
+import time
import socket
import select
from unit.main import TestUnit
@@ -178,3 +179,20 @@ class TestHTTP(TestUnit):
headers[m.group(1)] = [headers[m.group(1)], m.group(2)]
return {'status': int(status), 'headers': headers, 'body': body}
+
+ def waitforsocket(self, port):
+ ret = False
+
+ for i in range(50... |
[awm2] Bugfix bind_rect_to_screen | @@ -952,17 +952,32 @@ impl Desktop {
}
fn bind_rect_to_screen_size(&self, r: Rect) -> Rect {
+ /*
let mut out = r;
out.origin.x = max(r.origin.x, 0);
out.origin.y = max(r.origin.y, 0);
+ if out.max_x() > desktop_size.width {
+ let overhang = out.max_x() - desktop_size.width;
+ out.origin.x -= overhang;
+ }
+ if out.max... |
settings: my channel -> my channels
This matches the phrasing used in the omnibox and on the tile. | @@ -18,7 +18,7 @@ import { BackButton } from './BackButton';
import airlock from '~/logic/api';
const labels: Record<LeapCategories, string> = {
- mychannel: 'My Channel',
+ mychannel: 'My Channels',
updates: 'Notifications',
profile: 'Profile',
messages: 'Messages',
|
fix: Add boat_try_declare to compile
issue | @@ -33,6 +33,7 @@ BOAT_RESULT generateTxRequestPayloadPack(BoatHlchainmakerTx *tx_ptr, char *metho
{
BOAT_RESULT result = BOAT_SUCCESS;
int i;
+ boat_try_declare;
BUINT32 packed_length_payload;
Common__TransactPayload transactPayload = COMMON__TRANSACT_PAYLOAD__INIT;
|
Describe `objcopy` tool in clang7 to fix `ya package --full-strip` | "strip": {
"bottle": "clang7",
"executable": "llvm-strip"
+ },
+ "objcopy": {
+ "bottle": "clang7",
+ "executable": "llvm-objcopy"
}
},
"platforms": [
|
[cmake] fix MUMPS detection on zesty | @@ -12,17 +12,22 @@ INCLUDE(FindPackageHandleStandardArgs)
IF(MUMPS_LIBRARY_DIRECTORY)
FIND_LIBRARY(MUMPS_LIBRARY dmumps PATHS "${MUMPS_LIBRARY_DIRECTORY}" NO_DEFAULT_PATH)
+ IF(NOT MUMPS_LIBRARY)
+ SET(_MUMPS_DEFAULT_SEARCH_DIR TRUE)
+ MESSAGE("Could not find MUMPS in directory ${MUMPS_LIBRARY_DIRECTORY}")
+ FIND_LIBR... |
docs/library/network: Make AbstractNIC methods layout correctly. | @@ -50,7 +50,7 @@ Instantiate a network interface object. Parameters are network interface
dependent. If there are more than one interface of the same type, the first
parameter should be `id`.
- .. method:: active([is_active])
+.. method:: AbstractNIC.active([is_active])
Activate ("up") or deactivate ("down") the netwo... |
Emote use same palette as parent actor | @@ -801,14 +801,15 @@ void Script_ActorSetCollisions_b() {
*/
void Script_ActorSetEmote_b() {
unsigned char* emote_ptr;
+ UBYTE palette = actors[script_actor].palette_index;
emote_sprite = SpritePoolNext();
emote_timer = 1;
script_update_fn = ScriptUpdate_Emote;
emote_ptr = (BankDataPtr(EMOTES_SPRITE_BANK)) + EMOTES_SP... |
tests: internal: config format: yaml: extend test case | @@ -24,11 +24,10 @@ void test_basic()
}
/* Total number of sections */
- TEST_CHECK(mk_list_size(&cf->sections) == 9);
+ TEST_CHECK(mk_list_size(&cf->sections) == 10);
/* SERVICE check */
TEST_CHECK(cf->service != NULL);
-
if (cf->service) {
TEST_CHECK(mk_list_size(&cf->service->properties) == 3);
}
@@ -37,7 +36,7 @@ v... |
core/minute-ia: Disable flag when using clang
"-mno-accumulate-outgoing-args" is not a flag that clang understands.
BRANCH=ish
TEST=none | @@ -14,11 +14,14 @@ $(call set-option,CROSS_COMPILE,$(CROSS_COMPILE_i386),\
CFLAGS_FPU-$(CONFIG_FPU)=
# CPU specific compilation flags
-CFLAGS_CPU+=-O2 -fomit-frame-pointer -mno-accumulate-outgoing-args \
+CFLAGS_CPU+=-O2 -fomit-frame-pointer \
-ffunction-sections -fdata-sections \
-fno-builtin-printf -fno-builtin-spri... |
added latitude and longitude (NMEA format) to CSV output | @@ -859,7 +859,15 @@ return;
/*===========================================================================*/
static void writecsv(uint64_t timestamp, uint8_t *mac, tags_t *tags)
{
+static int c;
+static int p;
static struct timeval tvo;
+static float latitude;
+static char ew;
+static float longitude;
+static char ns;
... |
acl-plugin: fix coverity error that the fix related for has triggered
Fix the trivial use-before-check copypaste error.
There was a more subtle issue with that patch that Coverity didn't notice:
namely, vec_validate(v, len-1) is a terrible idea if len happens to be == 0.
Fix that. | @@ -603,6 +603,10 @@ hash_acl_set_heap(acl_main_t *am)
am->hash_lookup_mheap = mheap_alloc_with_lock (0 /* use VM */ ,
am->hash_lookup_mheap_size,
1 /* locked */);
+ if (0 == am->hash_lookup_mheap) {
+ clib_error("ACL plugin failed to allocate lookup heap of %U bytes",
+ format_memory_size, am->hash_lookup_mheap_size);... |
Check amd to be the compiler vendor for OpenMP
Gerrit review 618866 sets OpenMP compiler vendor to be "amd" for any compiler based on amd-stg-open. | @@ -85,7 +85,7 @@ int check_implementation_vendor_selector() {
#pragma omp target map(tofrom: threadCount)
{
#pragma omp metadirective \
- when(implementation = {vendor(llvm)}: parallel) \
+ when(implementation = {vendor(amd)}: parallel) \
default(single)
threadCount = omp_get_num_threads();
@@ -104,8 +104,8 @@ int che... |
test enabled but exclusions added | #Define a common label for all the tmp files
label="bufr_wmo_tables_test"
-#Create log file
-fLog=${label}".log"
-rm -f $fLog
-touch $fLog
-
-#Define tmp bufr files
-fTmp=${label}".tmp"
+#Define tmp bufr file
+fTmp=${label}".tmp.bufr"
#==============================================
# Testing latest WMO tables
#========... |
feat(specs): add missing field and update comments for application commands specs | "fields":
[
{"name":"id", "type":{"base":"char", "dec":"*", "converter":"snowflake"}, "comment":"unique id of the command"},
+ {"name":"type", "type":{"base":"int", "int_alias":"enum discord_application_command_types"}, "option":true, "comment":"the type of the command, defaults 1 if not set", "inject_if_not":0},
{"nam... |
webp-container-spec.txt: remove 'experimental' markers
unknown chunks as a group are well defined in the text
+ remove the Note about stable features as it matched the list given;
there are no WIP features for the format | @@ -53,10 +53,6 @@ document are to be interpreted as described in [RFC 2119][].
Bit numbering in chunk diagrams starts at `0` for the most significant bit
('MSB 0') as described in [RFC 1166][].
-**Note:** Out of the features mentioned above, lossy compression, lossless
-compression, transparency, metadata, color profi... |
[update] support fal api for c++ | #include <fal_cfg.h>
#include "fal_def.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/**
* FAL (Flash Abstraction Layer) initialization.
* It will initialize all flash device and all flash partition.
@@ -149,4 +153,8 @@ struct rt_device *fal_mtd_nor_device_create(const char *parition_name);
*/
struct rt_device *fal_ch... |
Fix MacOSX makefile | CPPFLAGS:=-I./lua/src
CFLAGS:=--std=c99 -g -Wall -O2 -fPIC
-.PHONY: default clean linux-readline lua-linux-readline macos lua-macos
+.PHONY: default clean linux-readline lua-linux-readline macosx lua-macosx
default:
@echo "Please do 'make PLATFORM' where PLATFORM is one of these:"
- @echo " linux-readline linux-noreadl... |
examples/ota: fix README for instructions on hosting image on github.com server
Ref: | @@ -158,4 +158,17 @@ $ python example_test.py build 8070
Starting HTTPS server at "https://:8070"
192.168.10.106 - - [02/Mar/2021 14:32:26] "GET /simple_ota.bin HTTP/1.1" 200 -
```
-* Publish the firmware image on a public server (e.g. github.com) and copy its root certificate to the `server_certs` directory as `ca_cer... |
Cannot retire conn ID where the packet is sent | @@ -5603,7 +5603,8 @@ static int conn_recv_new_connection_id(ngtcp2_conn *conn,
/*
* conn_recv_retire_connection_id processes the incoming
- * RETIRE_CONNECTION_ID frame |fr|.
+ * RETIRE_CONNECTION_ID frame |fr|. |hd| is a packet header which
+ * |fr| is included.
*
* This function returns 0 if it succeeds, or one of t... |
remove some duplicate code lines | @@ -1605,10 +1605,6 @@ void process80211packet(uint32_t tv_sec, uint32_t tv_usec, uint32_t caplen, uint
{
mac_t *macf;
-if(caplen < (uint32_t)MAC_SIZE_NORM)
- {
- return;
- }
macf = (mac_t*)packet;
if((macf->from_ds == 1) && (macf->to_ds == 1))
{
|
apps/examples/fb: Fix calculation of a mask value. | @@ -177,10 +177,12 @@ static void draw_rect1(FAR struct fb_state_s *state,
int y;
row = (FAR uint8_t *)state->fbmem + state->pinfo.stride * rect->pt1.y;
+
startx = (rect->pt1.x >> 3);
endx = (rect->pt2.x >> 3);
- lmask = 0xff << (8 - (rect->pt1.x & 3));
- rmask = 0xff >> (rect->pt2.x & 3);
+
+ lmask = 0xff << (8 - (rec... |
Use fork for TCC instead of third party URL | @@ -80,7 +80,7 @@ else()
endif()
set(LIBTCC_TARGET libtcc-depends)
-set(LIBTCC_COMMIT_SHA "da11cf651576f94486dbd043dbfcde469e497574")
+set(LIBTCC_COMMIT_SHA "afc1362")
set(LIBTTC_LIBRARY_NAME "${CMAKE_SHARED_LIBRARY_PREFIX}tcc${CMAKE_SHARED_LIBRARY_SUFFIX}")
set(LIBTTC_LIBRARY_PATH "${PROJECT_OUTPUT_DIR}/${LIBTTC_LIBRA... |
invite-hook: modernized the style and removed inline %json conversion | -:: invite-hook [landscape]:
+:: invite-hook [landscape]: receive invites from any source
::
-:: receive invites from any source
+:: only handles %invite actions:
+:: - can be poked by the host team to send an invite out to someone.
+:: - can be poked by foreign ships to send an invite to us.
::
-:: only handles %invit... |
getPixel and setPixel bound checks; | @@ -185,6 +185,8 @@ Color lovrTextureDataGetPixel(TextureData* textureData, int x, int y) {
return (Color) { 0, 0, 0, 0 };
}
+ bool inside = x >= 0 && y >= 0 && x <= (textureData->width - 1) && y <= (textureData->height - 1);
+ lovrAssert(inside, "getPixel coordinates must be in TextureData bounds");
size_t offset = 4 ... |
Voxel: enable i2c channel 4
Config GPIOF2, GPIOF3 to i2c module
BRANCH=none
TEST=make buildall PASS | @@ -155,6 +155,7 @@ ALTERNATE(PIN_MASK(B, BIT(5) | BIT(4)), 0, MODULE_I2C, (GPIO_INPUT | GPIO_SEL_1P
ALTERNATE(PIN_MASK(9, BIT(0) | BIT(2) | BIT(1)), 0, MODULE_I2C, 0) /* I2C1 SCL / I2C2 */
ALTERNATE(PIN_MASK(8, BIT(7)), 0, MODULE_I2C, 0) /* I2C1 SDA */
ALTERNATE(PIN_MASK(D, BIT(1) | BIT(0)), 0, MODULE_I2C, 0) /* I2C3 ... |
pybricks.parameters.Color: use hue enum
This makes the end-user hue values consistent with what we use internally. | const parameters_Color_obj_t pb_Color_RED_obj = {
{&pb_type_Color},
.name = MP_OBJ_NEW_QSTR(MP_QSTR_RED),
- .hsv = {0, 100, 100}
+ .hsv = {PBIO_COLOR_HUE_RED, 100, 100}
};
const parameters_Color_obj_t pb_Color_BROWN_obj = {
{&pb_type_Color},
.name = MP_OBJ_NEW_QSTR(MP_QSTR_BROWN),
- .hsv = {30, 100, 50}
+ .hsv = {PBIO_... |
debian/rules: Cleanup egg-info directory of acrn-board-inspector | @@ -408,6 +408,7 @@ override_dh_auto_clean:
$(Q)rm -f debian/acrn-tools.install
$(Q)rm -f debian/acrn-hypervisor.templates
$(Q)rm -rf debian/acrn-board-inspector/build
+ $(Q)rm -rf debian/acrn-board-inspector/acrn_board_inspector.egg-info
$(Q)dh_auto_clean $(devnull)
### others #########################################... |
Fixed flash device in flash_mcs.tcl script for 9V3. | @@ -77,7 +77,7 @@ switch $fpgacard {
set fpgapartnum xcku15p
set rs_pins {26:25}
}
- AD9V3 { set flashdevice mt25qu256aba8e12-1sit
+ AD9V3 { set flashdevice mt25qu256-spi-x1_x2_x4_x8
set fpgapartnum xcvu3p
}
default {
|
Release 1.6 Docs | @@ -45,6 +45,7 @@ This table describes all MsQuic releases, both officially supported (LTSC or SAC
| PRE | [prerelease/1.3](https://github.com/microsoft/msquic/tree/prerelease/1.3) | N/A | Apr 27 2021 | N/A | N/A |
| PRE | [prerelease/1.4](https://github.com/microsoft/msquic/tree/prerelease/1.4) | N/A | Jun 1 2021 | N/... |
abi change, version bump | @@ -23,7 +23,7 @@ AC_CONFIG_SRCDIR([src/encmain.c])
#
# Here is a somewhat sane guide to lib versioning: http://apr.apache.org/versioning.html
ver_major=6
-ver_minor=4
+ver_minor=5
ver_release=0
# Prevents configure from adding a lot of defines to the CFLAGS
|
fix SVN_DEPENDS when .arc is a symlink | @@ -558,7 +558,7 @@ class Build(object):
else:
def find_svn():
for i in range(0, 3):
- for path in (['.svn', 'wc.db'], ['.svn', 'entries'], ['.git', 'logs', 'HEAD'], ['.arc', 'TREE']):
+ for path in (['.svn', 'wc.db'], ['.svn', 'entries'], ['.git', 'logs', 'HEAD']):
path_parts = [os.pardir] * i + path
full_path = os.pa... |
xpath REFACTOR false-positive uninitialized value | @@ -5147,7 +5147,7 @@ xpath_sum(struct lyxp_set **args, uint16_t UNUSED(arg_count), struct lyxp_set *s
set_init(&set_item, set);
set_item.type = LYXP_SET_NODE_SET;
- set_item.val.nodes = malloc(sizeof *set_item.val.nodes);
+ set_item.val.nodes = calloc(1, sizeof *set_item.val.nodes);
LY_CHECK_ERR_RET(!set_item.val.node... |
doc: add python3 doc to "Ubuntu - Source" section in INSTALL.md | @@ -352,12 +352,18 @@ sudo apt-get -y install luajit luajit-5.1-dev
```
### Install and compile BCC
+
```
git clone https://github.com/iovisor/bcc.git
mkdir bcc/build; cd bcc/build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
make
sudo make install
+cmake -DPYTHON_CMD=python3 .. # build python3 binding
+pushd src/python/
+make... |
Add survive_buildinfo to Android.mk | @@ -63,6 +63,7 @@ LOCAL_SRC_FILES := \
src/survive.c \
src/survive_api.c \
src/survive_async_optimizer.c \
+ src/survive_buildinfo.c \
src/survive_config.c \
src/survive_default_devices.c \
src/survive_disambiguator.c \
|
imgtool: fix trailer size calculation | @@ -35,6 +35,7 @@ IMAGE_HEADER_SIZE = 32
BIN_EXT = "bin"
INTEL_HEX_EXT = "hex"
DEFAULT_MAX_SECTORS = 128
+MAX_ALIGN = 8
DEP_IMAGES_KEY = "images"
DEP_VERSIONS_KEY = "versions"
@@ -116,6 +117,7 @@ class Image():
self.base_addr = None
self.load_addr = 0 if load_addr is None else load_addr
self.payload = []
+ self.enckey ... |
[mod_deflate] fix potential NULL deref in err case
(bug on master branch; never released) | @@ -1551,7 +1551,7 @@ REQUEST_FUNC(mod_deflate_handle_response_start) {
sce = stat_cache_get_entry(r->write_queue.first->mem);
if (NULL == sce || sce->st.st_size != len)
tb = NULL;
- if (0 != mkdir_for_file(tb->ptr))
+ else if (0 != mkdir_for_file(tb->ptr))
tb = NULL;
}
|
Fix uninitialized variable error in gen_pipeline.py | @@ -155,9 +155,9 @@ def how_to_use_generated_pipeline_message():
msg += ' -l ~/workspace/continuous-integration/secrets/gpdb_common-ci-secrets.yml \\\n'
msg += ' -l ~/workspace/continuous-integration/secrets/gpdb_master-ci-secrets.yml \\\n'
msg += ' -v tf-bucket-path=dev/' + ARGS.pipeline_type + '/ \\\n'
- MSG += ' -v ... |
rpi-config: Take into consideration ENABLE_UART value of 0
Also, validate if the value of it is not 0 or 1.
Fixes: | @@ -174,9 +174,11 @@ do_deploy() {
fi
# UART support
- if [ "${ENABLE_UART}" = "1" ]; then
+ if [ "${ENABLE_UART}" = "1" ] || [ "${ENABLE_UART}" = "0" ] ; then
echo "# Enable UART" >>$CONFIG
- echo "enable_uart=1" >>$CONFIG
+ echo "enable_uart=${ENABLE_UART}" >>$CONFIG
+ else
+ bbfatal "Invalid value for ENABLE_UART [$... |
netcmd/dhcpd: fix minor bugs on start/stop dhcpd
This commit is fix minor bugs on start/stop dhcpd
- before running dhcpd, interface flags should be IFF_UP
- if dhcpd is not running, dhcpd stop command shows proper log | #include <string.h>
#include <errno.h>
+#include <net/if.h>
+
#include <apps/netutils/dhcpd.h>
/****************************************************************************
@@ -112,6 +114,7 @@ static void show_usage(void)
int cmd_dhcpd(int argc, char *argv[])
{
int result = OK;
+ uint8_t flags;
if (argc < 2) {
show_usa... |
Remove spurious BBR printf | @@ -841,9 +841,6 @@ void BBRCheckProbeRTT(picoquic_bbr_state_t* bbr_state, picoquic_path_t* path_x,
void BBRUpdateModelAndState(picoquic_bbr_state_t* bbr_state, picoquic_path_t* path_x,
uint64_t rtt_sample, uint64_t bytes_in_transit, uint64_t packets_lost, uint64_t current_time)
{
- if (current_time > 2000000) {
- DBG_... |
Add Corne to hardware list. | @@ -22,6 +22,7 @@ That being said, there are currently only a few specific [boards](/docs/faq#what
## Keyboard Shields
- [Kyria](https://splitkb.com/products/kyria-pcb-kit) (`kyria_left` and `kyria_right`)
+- [Corne](https://github.com/foostan/crkbd) (`corne_left` and `corne_right`)
- [Lily58](https://github.com/kata05... |
Solve bug in node loader bootstrap for an edge case when function is unnamed and exposed to a property. | @@ -13,11 +13,9 @@ function node_loader_trampoline_is_callable(value) {
return typeof value === 'function';
}
-function node_loader_trampoline_is_valid_symbol(ast) {
+function node_loader_trampoline_is_valid_symbol(node) {
// TODO: Enable more function types
- return ast.type === 'FunctionDeclaration' ||
- ast.type ===... |
[.github] update cmake.yml | @@ -36,15 +36,20 @@ jobs:
liblapacke-dev \
lp-solve \
liblpsolve55-dev \
+ libhdf5-dev \
python3 \
python3-packaging \
+ python3-pip \
+ python3-scipy \
python3-h5py \
+ python3-pytest \
+ python3-lxml \
libpython3-dev \
libcppunit-dev \
libbullet-dev \
libfreetype6-dev \
freeglut3-dev
- pip3 install numpy scipy pytest... |
gsettings: fix write_tree deadlock 2 | @@ -351,9 +351,10 @@ static gboolean elektra_settings_backend_write_tree (GSettingsBackend * backend,
g_log (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "%s %s.", "Function writeTree. ", "We have to loop the tree and add the keys");
g_mutex_lock (&elektra_settings_kdb_lock);
g_tree_foreach (tree, elektra_settings_keyset_from_tree... |
nimble/ll: Remove duplicated defines
These are already defined in ble_ll.h. | @@ -72,21 +72,6 @@ static struct ble_ll_scan_params g_ble_ll_scan_params[BLE_LL_SCAN_PHY_NUMBER];
/* The scanning state machine global object */
static struct ble_ll_scan_sm g_ble_ll_scan_sm;
-#define BLE_LL_EXT_ADV_ADVA_BIT (0)
-#define BLE_LL_EXT_ADV_TARGETA_BIT (1)
-#define BLE_LL_EXT_ADV_RFU_BIT (2)
-#define BLE_LL... |
[kernel] add acess to size of indexset | @@ -273,6 +273,15 @@ public:
return _IG.size();
};
+ /** get the size of the InteractionGraphs at a given level
+ * \param level
+ * \return size of the InteractionGraphs at a given level
+ */
+ inline unsigned int indexSetSize(unsigned int level) const
+ {
+ return _IG[level]->size();
+ };
+
/** resize Interactions Gr... |
Minor change in Dockerfile | @@ -23,32 +23,9 @@ RUN apt-get update && apt-get install -y \
git \
&& rm -rf /var/lib/apt/lists/*
WORKDIR ./datafari
-COPY ./pom.xml .
-COPY ./datafari-core/pom.xml ./datafari-core/pom.xml
-COPY ./datafari-dependencies/pom.xml ./datafari-dependencies/pom.xml
-COPY ./datafari-dependencies/ ./datafari-dependencies/
-RUN... |
Decode symname for exception message when symbol cannot be found
Decode symname for exception message and add module to the exception message | @@ -957,7 +957,8 @@ class BPF(object):
ct.cast(None, ct.POINTER(bcc_symbol_option)),
ct.byref(sym),
) < 0:
- raise Exception("could not determine address of symbol %s" % symname)
+ raise Exception("could not determine address of symbol %s in %s"
+ % (symname.decode(), module.decode()))
new_addr = sym.offset + sym_off
m... |
interface: update tx queue runtime if vector size changes
Fixes issue which causes crash in case when VPP only runs with main thread.
Type: fix | @@ -169,7 +169,11 @@ vnet_hw_if_update_runtime_data (vnet_main_t *vnm, u32 hw_if_index)
new_out_runtimes =
vec_dup_aligned (hi->output_node_thread_runtimes, CLIB_CACHE_LINE_BYTES);
- vec_validate_aligned (new_out_runtimes, n_threads, CLIB_CACHE_LINE_BYTES);
+ vec_validate_aligned (new_out_runtimes, n_threads - 1,
+ CLI... |
external/mambo: Updates POWER9 SIM_CTRL1 to remove hardware atomic RC
Update SIM_CTRL1 bits to set ARC0/1, which disables atomic RC updates in
hardware which matches implementation.
Comment some remaining quirks with the P9 configuration. | @@ -135,8 +135,11 @@ if { $default_config == "PEGASUS" } {
if { $default_config == "P9" } {
# PVR configured for POWER9 DD2.3 Scale out 24 Core (ie SMT4)
+ # This still is not configured with LPAR-per-thread, which will make
+ # multi-thread KVM not work properly. And possibly even small-core is
+ # not set correctly e... |
Remove unused async annotation | @@ -47,7 +47,7 @@ def apply_annotations(postfix, extra_args, expr):
def search_for_annotations(stmt):
- available_optimization_annotations = ['offload', 'atomic', 'async']
+ available_optimization_annotations = ['offload', 'atomic']
if stmt.node_type != "BlockStatement":
return stmt
|
acrn-config: passthrough embeded tsn device for pre-launched RTVM
passthrough embeded tsn device for pre-launched RTVM on hybrid-rt
scenario of tgl-rvp board. | </vuart>
<pci_devs desc="pci devices list">
<pci_dev desc="pci device">00:17.0 SATA controller: Intel Corporation Device a0d3 (rev 20)</pci_dev>
- <pci_dev desc="pci device">aa:00.0 Ethernet controller: Intel Corporation Device 15f2 (rev 03)</pci_dev>
+ <pci_dev desc="pci device">00:1e.4 Ethernet controller: Intel Corp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.