Check-in [8bf1aedb53]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Correct warning and compilation errors in RatufaCoat.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 8bf1aedb53c4b89d6a2f6d0dbb31fa53c971ba61
User & Date: stephanie.gawroriski 2019-07-01 18:12:57
Context
2019-07-01
18:42
Initialize base random seed. check-in: 4dc07dff98 user: stephanie.gawroriski tags: trunk
18:12
Correct warning and compilation errors in RatufaCoat. check-in: 8bf1aedb53 user: stephanie.gawroriski tags: trunk
17:01
Set current on the game interface. check-in: a5ce9a6ecb user: stephanie.gawroriski tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to ratufacoat/sjmerc.c.

2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
					/* Address. */
					id = r[sjme_opdecodereg(jvm->vmem, &nextpc, error)];
					
					/* Offset. */
					ie = sjme_opdecodeui(jvm->vmem, &nextpc, error);
					
					/* Perform the operation. */
					r[ib] = sjme_jint sjme_vmmatomicintcheckgetandset(
						jvm->vmem, ia, ic, id, ie, error);
				}
				break;
				
				/* Atomic decrement and get. */
			case SJME_OP_ATOMIC_INT_DECREMENT_AND_GET:
				{







|







2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
					/* Address. */
					id = r[sjme_opdecodereg(jvm->vmem, &nextpc, error)];
					
					/* Offset. */
					ie = sjme_opdecodeui(jvm->vmem, &nextpc, error);
					
					/* Perform the operation. */
					r[ib] = sjme_vmmatomicintcheckgetandset(
						jvm->vmem, ia, ic, id, ie, error);
				}
				break;
				
				/* Atomic decrement and get. */
			case SJME_OP_ATOMIC_INT_DECREMENT_AND_GET:
				{

Changes to ratufacoat/sjmercvm.c.

390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
...
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
	sjme_jint rv;
	
	/* Invalid argument? */
	if (vmem == NULL)
	{
		sjme_seterror(error, SJME_ERROR_INVALIDARG, 0);
		
		return;
	}
	
	/* Read current value. */
	rv = sjme_vmmread(vmem, SJME_VMMTYPE_INTEGER, ptr, off, error);
	
	/* If value is the same, set it. */
	if (rv == check)
................................................................................
	sjme_jint rv;
	
	/* Invalid argument? */
	if (vmem == NULL)
	{
		sjme_seterror(error, SJME_ERROR_INVALIDARG, 0);
		
		return;
	}
	
	/* Read current value. */
	rv = sjme_vmmread(vmem, SJME_VMMTYPE_INTEGER, ptr, off, error);
	
	/* Add value. */
	rv += add;







|







 







|







390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
...
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
	sjme_jint rv;
	
	/* Invalid argument? */
	if (vmem == NULL)
	{
		sjme_seterror(error, SJME_ERROR_INVALIDARG, 0);
		
		return 0;
	}
	
	/* Read current value. */
	rv = sjme_vmmread(vmem, SJME_VMMTYPE_INTEGER, ptr, off, error);
	
	/* If value is the same, set it. */
	if (rv == check)
................................................................................
	sjme_jint rv;
	
	/* Invalid argument? */
	if (vmem == NULL)
	{
		sjme_seterror(error, SJME_ERROR_INVALIDARG, 0);
		
		return 0;
	}
	
	/* Read current value. */
	rv = sjme_vmmread(vmem, SJME_VMMTYPE_INTEGER, ptr, off, error);
	
	/* Add value. */
	rv += add;